diff options
| author | Aaron Smith <aaron.smith@microsoft.com> | 2018-03-20 00:34:18 +0000 |
|---|---|---|
| committer | Aaron Smith <aaron.smith@microsoft.com> | 2018-03-20 00:34:18 +0000 |
| commit | a3a8cc80b3a8029ad93a7ec2a3da7b7bd31f56ac (patch) | |
| tree | 8b3fd36db8b5a103e37893015ca76c79d8342034 /lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp | |
| parent | 5ffe52395a39ebc800dcd8a1c9975b89416d770c (diff) | |
| download | bcm5719-llvm-a3a8cc80b3a8029ad93a7ec2a3da7b7bd31f56ac.tar.gz bcm5719-llvm-a3a8cc80b3a8029ad93a7ec2a3da7b7bd31f56ac.zip | |
[SymbolFilePDB] Simplify code with newer methods
llvm-svn: 327927
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp b/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp index e26d46df46b..fc066c2bc33 100644 --- a/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp +++ b/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp @@ -438,7 +438,7 @@ lldb::TypeSP PDBASTParser::CreateLLDBTypeFromPDBType(const PDBSymbol &type) { pointer_ast_type = pointee_type->GetFullCompilerType(); if (pointer_type->isReference()) pointer_ast_type = pointer_ast_type.GetLValueReferenceType(); - else if (pointer_type->getRawSymbol().isRValueReference()) + else if (pointer_type->isRValueReference()) pointer_ast_type = pointer_ast_type.GetRValueReferenceType(); else pointer_ast_type = pointer_ast_type.GetPointerType(); @@ -449,7 +449,7 @@ lldb::TypeSP PDBASTParser::CreateLLDBTypeFromPDBType(const PDBSymbol &type) { if (pointer_type->isVolatileType()) pointer_ast_type = pointer_ast_type.AddVolatileModifier(); - if (pointer_type->getRawSymbol().isRestrictedType()) + if (pointer_type->isRestrictedType()) pointer_ast_type = pointer_ast_type.AddRestrictModifier(); return std::make_shared<lldb_private::Type>( |

