diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-12-25 18:23:09 +0100 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-12-25 19:02:40 +0100 |
| commit | caf460d979a2b1141797919de0da0bbf1b8eaa88 (patch) | |
| tree | b977b5490edf928d9e23c7259b913511cb5b73c6 /lldb/source/Plugins/SymbolFile | |
| parent | 2498d882598d58b8811b986ad0d834cb0ecedda3 (diff) | |
| download | bcm5719-llvm-caf460d979a2b1141797919de0da0bbf1b8eaa88.tar.gz bcm5719-llvm-caf460d979a2b1141797919de0da0bbf1b8eaa88.zip | |
[lldb][NFC] Use StringRef in ClangASTContext::GetBuiltinTypeForDWARFEncodingAndBitSize
Diffstat (limited to 'lldb/source/Plugins/SymbolFile')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp index d8c2e7d5409..e5c37e77194 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -598,7 +598,7 @@ DWARFASTParserClang::ParseTypeModifier(const SymbolContext &sc, case DW_TAG_base_type: resolve_state = Type::ResolveState::Full; clang_type = m_ast.GetBuiltinTypeForDWARFEncodingAndBitSize( - attrs.name.GetCString(), attrs.encoding, + attrs.name.GetStringRef(), attrs.encoding, attrs.byte_size.getValueOr(0) * 8); break; @@ -809,7 +809,7 @@ TypeSP DWARFASTParserClang::ParseEnum(const SymbolContext &sc, if (!enumerator_clang_type) { if (attrs.byte_size) { enumerator_clang_type = m_ast.GetBuiltinTypeForDWARFEncodingAndBitSize( - NULL, DW_ATE_signed, *attrs.byte_size * 8); + "", DW_ATE_signed, *attrs.byte_size * 8); } else { enumerator_clang_type = m_ast.GetBasicType(eBasicTypeInt); } |

