diff options
| author | Adrian Prantl <aprantl@apple.com> | 2016-12-16 01:00:30 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2016-12-16 01:00:30 +0000 |
| commit | 03c6d31a3b308afb2c6a4c506002c88c48c9d58d (patch) | |
| tree | 755debe0ba8d4df68b9f524f8f689e15b4ec1a4f /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | |
| parent | 6f1daa4660edb7f401c67b3e23d213bce103bca9 (diff) | |
| download | bcm5719-llvm-03c6d31a3b308afb2c6a4c506002c88c48c9d58d.tar.gz bcm5719-llvm-03c6d31a3b308afb2c6a4c506002c88c48c9d58d.zip | |
Revert "[IR] Remove the DIExpression field from DIGlobalVariable."
This reverts commit 289902 while investigating bot berakage.
llvm-svn: 289906
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp b/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp index f675830aa67..5b254c8cf11 100644 --- a/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp +++ b/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp @@ -91,8 +91,7 @@ void ModuleDebugInfoPrinter::print(raw_ostream &O, const Module *M) const { O << '\n'; } - for (auto GVU : Finder.global_variables()) { - const auto *GV = GVU->getVariable(); + for (const DIGlobalVariable *GV : Finder.global_variables()) { O << "Global variable: " << GV->getName(); printFile(O, GV->getFilename(), GV->getDirectory(), GV->getLine()); if (!GV->getLinkageName().empty()) |

