summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/PDB
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-12-17 16:00:51 +0100
committerRaphael Isemann <teemperor@gmail.com>2019-12-17 16:10:34 +0100
commit268f37df6e45c4b0603bd4d964483a0d84da44c1 (patch)
tree11c24e6c9aee6c148b58494c603e33279657d0fb /lldb/source/Plugins/SymbolFile/PDB
parentb1d8576b0a9fa1f6a1173c0b5c2f379389e01e3f (diff)
downloadbcm5719-llvm-268f37df6e45c4b0603bd4d964483a0d84da44c1.tar.gz
bcm5719-llvm-268f37df6e45c4b0603bd4d964483a0d84da44c1.zip
[lldb][NFC] Use StringRef in CreateRecordType and CreateObjCClass
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB')
-rw-r--r--lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp b/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
index 7bf94c64aa4..740b3901686 100644
--- a/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
+++ b/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
@@ -417,9 +417,9 @@ lldb::TypeSP PDBASTParser::CreateLLDBTypeFromPDBType(const PDBSymbol &type) {
metadata.SetUserID(type.getSymIndexId());
metadata.SetIsDynamicCXXType(false);
- clang_type = m_ast.CreateRecordType(
- decl_context, access, name.c_str(), tag_type_kind,
- lldb::eLanguageTypeC_plus_plus, &metadata);
+ clang_type =
+ m_ast.CreateRecordType(decl_context, access, name, tag_type_kind,
+ lldb::eLanguageTypeC_plus_plus, &metadata);
assert(clang_type.IsValid());
auto record_decl =
OpenPOWER on IntegriCloud