diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-14 02:22:36 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-14 02:22:36 +0000 |
commit | 7348ddaa74814cda8de8c2e33c5a4dee3b0ca3bc (patch) | |
tree | a048dee417287db5abcfe528636744d11862915c /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | |
parent | 02628def325f4169ca96802e8741d8e5b1a65580 (diff) | |
download | bcm5719-llvm-7348ddaa74814cda8de8c2e33c5a4dee3b0ca3bc.tar.gz bcm5719-llvm-7348ddaa74814cda8de8c2e33c5a4dee3b0ca3bc.zip |
DebugInfo: Gut DIVariable and DIGlobalVariable
Gut all the non-pointer API from the variable wrappers, except an
implicit conversion from `DIGlobalVariable` to `DIDescriptor`. Note
that if you're updating out-of-tree code, `DIVariable` wraps
`MDLocalVariable` (`MDVariable` is a common base class shared with
`MDGlobalVariable`).
llvm-svn: 234840
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
-rw-r--r-- | llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp b/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp index 38007bbcd3f..f305f13c1aa 100644 --- a/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp +++ b/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp @@ -91,10 +91,10 @@ void ModuleDebugInfoPrinter::print(raw_ostream &O, const Module *M) const { } for (DIGlobalVariable GV : Finder.global_variables()) { - O << "Global variable: " << GV.getName(); - printFile(O, GV.getFilename(), GV.getDirectory(), GV.getLineNumber()); - if (!GV.getLinkageName().empty()) - O << " ('" << GV.getLinkageName() << "')"; + O << "Global variable: " << GV->getName(); + printFile(O, GV->getFilename(), GV->getDirectory(), GV->getLine()); + if (!GV->getLinkageName().empty()) + O << " ('" << GV->getLinkageName() << "')"; O << '\n'; } |