summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-12-20 23:32:37 +0000
committerZachary Turner <zturner@google.com>2018-12-20 23:32:37 +0000
commit3790029d9714b4b42ebb289fb1ee8670e6a1b99d (patch)
treef943ca359e82624bd73d515f83a470ea0e83379d /lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h
parent1de5876f428e031a0ead529b8d340598ed2498e0 (diff)
downloadbcm5719-llvm-3790029d9714b4b42ebb289fb1ee8670e6a1b99d.tar.gz
bcm5719-llvm-3790029d9714b4b42ebb289fb1ee8670e6a1b99d.zip
[NativePDB] Create VarDecls for global variables.
Previously we would create these for local variables but not for global variables. Also updated existing tests which created global variables to check for them in the resulting AST. llvm-svn: 349854
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h')
-rw-r--r--lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h b/lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h
index e1a0bb8a6e8..839d4e6606e 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h
@@ -150,6 +150,7 @@ public:
std::vector<SymbolAndUid> FindSymbolsByVa(lldb::addr_t va);
llvm::codeview::CVSymbol ReadSymbolRecord(PdbCompilandSymId cu_sym) const;
+ llvm::codeview::CVSymbol ReadSymbolRecord(PdbGlobalSymId global) const;
llvm::Optional<uint16_t> GetModuleIndexForAddr(uint16_t segment,
uint32_t offset) const;
OpenPOWER on IntegriCloud