1296417Sdim//===-- LogChannelDWARF.h ---------------------------------------*- C++ -*-===// 2254721Semaste// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6254721Semaste// 7254721Semaste//===----------------------------------------------------------------------===// 8254721Semaste 9254721Semaste#ifndef SymbolFileDWARF_LogChannelDWARF_h_ 10254721Semaste#define SymbolFileDWARF_LogChannelDWARF_h_ 11254721Semaste 12321369Sdim#include "lldb/Utility/Log.h" 13254721Semaste 14314564Sdim#define DWARF_LOG_DEBUG_INFO (1u << 1) 15314564Sdim#define DWARF_LOG_DEBUG_LINE (1u << 2) 16353358Sdim#define DWARF_LOG_LOOKUPS (1u << 3) 17353358Sdim#define DWARF_LOG_TYPE_COMPLETION (1u << 4) 18353358Sdim#define DWARF_LOG_DEBUG_MAP (1u << 5) 19314564Sdim#define DWARF_LOG_ALL (UINT32_MAX) 20314564Sdim#define DWARF_LOG_DEFAULT (DWARF_LOG_DEBUG_INFO) 21254721Semaste 22321369Sdimnamespace lldb_private { 23321369Sdimclass LogChannelDWARF { 24321369Sdim static Log::Channel g_channel; 25321369Sdim 26254721Semastepublic: 27314564Sdim static void Initialize(); 28314564Sdim static void Terminate(); 29254721Semaste 30321369Sdim static Log *GetLogIfAll(uint32_t mask) { return g_channel.GetLogIfAll(mask); } 31321369Sdim static Log *GetLogIfAny(uint32_t mask) { return g_channel.GetLogIfAny(mask); } 32254721Semaste}; 33321369Sdim} 34254721Semaste 35296417Sdim#endif // SymbolFileDWARF_LogChannelDWARF_h_ 36