diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-21 18:44:06 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-21 18:44:06 +0000 |
commit | 7f892716df57263dabb4063a563975b0a296c737 (patch) | |
tree | b8de28d9b3396c4adac17192f03948745d323dd8 /lib/Transforms/IPO | |
parent | 43eab6bce02309f470e486667e45d21f09884f51 (diff) | |
download | llvm-7f892716df57263dabb4063a563975b0a296c737.tar.gz |
DebugInfo: Drop rest of DIDescriptor subclasses
Delete the remaining subclasses of (the already deleted) `DIDescriptor`.
Part of PR23080.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/StripSymbols.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index ef43dd2d37b9..bcead02d80a2 100644 --- a/lib/Transforms/IPO/StripSymbols.cpp +++ b/lib/Transforms/IPO/StripSymbols.cpp @@ -321,11 +321,8 @@ bool StripDeadDebugInfo::runOnModule(Module &M) { } // Create our live global variable list. - MDGlobalVariableArray GVs = DIC->getGlobalVariables(); bool GlobalVariableChange = false; - for (unsigned i = 0, e = GVs.size(); i != e; ++i) { - DIGlobalVariable DIG = GVs[i]; - + for (MDGlobalVariable *DIG : DIC->getGlobalVariables()) { // Make sure we only visit each global variable only once. if (!VisitedSet.insert(DIG).second) continue; |