LLDB
mainline
llvm-project
lldb
source
Plugins
SymbolFile
DWARF
DWARFDefines.cpp
Go to the documentation of this file.
1
//===-- DWARFDefines.cpp --------------------------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
DWARFDefines.h
"
10
#include "
lldb/Utility/ConstString.h
"
11
#include <cstdio>
12
#include <cstring>
13
#include <string>
14
15
namespace
lldb_private::plugin
{
16
namespace
dwarf
{
17
18
llvm::StringRef
DW_TAG_value_to_name
(
dw_tag_t
tag) {
19
static
constexpr
llvm::StringLiteral s_unknown_tag_name(
"<unknown DW_TAG>"
);
20
if
(llvm::StringRef tag_name = llvm::dwarf::TagString(tag); !tag_name.empty())
21
return
tag_name;
22
23
return
s_unknown_tag_name;
24
}
25
26
}
// namespace dwarf
27
}
// namespace lldb_private::plugin
ConstString.h
DWARFDefines.h
dw_tag_t
llvm::dwarf::Tag dw_tag_t
Definition
dwarf.h:19
lldb_private::plugin::dwarf
Definition
TypeSystem.h:40
lldb_private::plugin::dwarf::DW_TAG_value_to_name
llvm::StringRef DW_TAG_value_to_name(dw_tag_t tag)
Definition
DWARFDefines.cpp:18
lldb_private::plugin
Definition
TypeSystem.h:39
Generated on
for LLDB by
1.14.0