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/Transforms/IPO/StripSymbols.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/Transforms/IPO/StripSymbols.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/StripSymbols.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/StripSymbols.cpp b/llvm/lib/Transforms/IPO/StripSymbols.cpp index 10066958300..b507f972c8b 100644 --- a/llvm/lib/Transforms/IPO/StripSymbols.cpp +++ b/llvm/lib/Transforms/IPO/StripSymbols.cpp @@ -335,7 +335,7 @@ bool StripDeadDebugInfo::runOnModule(Module &M) { // If the global variable referenced by DIG is not null, the global // variable is live. - if (DIG.getConstant()) + if (DIG->getVariable()) LiveGlobalVariables.push_back(DIG); else GlobalVariableChange = true; @@ -350,7 +350,7 @@ bool StripDeadDebugInfo::runOnModule(Module &M) { } if (GlobalVariableChange) { - DIC.replaceGlobalVariables(DIArray(MDNode::get(C, LiveGlobalVariables))); + DIC.replaceGlobalVariables(MDTuple::get(C, LiveGlobalVariables)); Changed = true; } |