opnsense-src/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.cpp
Dimitry Andric 04eeddc0aa Merge llvm-project main llvmorg-14-init-17616-g024a1fab5c35
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvmorg-14-init-17616-g024a1fab5c35.

PR:		261742
MFC after:	2 weeks
2022-05-14 13:44:34 +02:00

35 lines
1.2 KiB
C++

//===-- LogChannelDWARF.cpp -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "LogChannelDWARF.h"
using namespace lldb_private;
static constexpr Log::Category g_categories[] = {
{{"comp"},
{"log insertions of object files into DWARF debug maps"},
DWARFLog::TypeCompletion},
{{"info"}, {"log the parsing of .debug_info"}, DWARFLog::DebugInfo},
{{"line"}, {"log the parsing of .debug_line"}, DWARFLog::DebugLine},
{{"lookups"},
{"log any lookups that happen by name, regex, or address"},
DWARFLog::Lookups},
{{"map"}, {"log struct/unions/class type completions"}, DWARFLog::DebugMap},
};
static Log::Channel g_channel(g_categories, DWARFLog::DebugInfo);
template <> Log::Channel &lldb_private::LogChannelFor<DWARFLog>() {
return g_channel;
}
void LogChannelDWARF::Initialize() {
Log::Register("dwarf", g_channel);
}
void LogChannelDWARF::Terminate() { Log::Unregister("dwarf"); }