summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/StripSymbols.cpp
diff options
context:
space:
mode:
authorAlon Mishne <alon.mishne@intel.com>2014-03-18 09:41:07 +0000
committerAlon Mishne <alon.mishne@intel.com>2014-03-18 09:41:07 +0000
commitad312155a6a357e3ed73232f8f945f2bd75886b4 (patch)
treeef1a15009d4b5cfad4d18242abd2543c87e75a03 /llvm/lib/Transforms/IPO/StripSymbols.cpp
parentaa5b5f7b0d8f90f208bd070e000f166fa87d108a (diff)
downloadbcm5719-llvm-ad312155a6a357e3ed73232f8f945f2bd75886b4.tar.gz
bcm5719-llvm-ad312155a6a357e3ed73232f8f945f2bd75886b4.zip
[C++11] Change DebugInfoFinder to use range-based loops
Also changes the iterators to return actual DI type over MDNode. llvm-svn: 204130
Diffstat (limited to 'llvm/lib/Transforms/IPO/StripSymbols.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/StripSymbols.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/StripSymbols.cpp b/llvm/lib/Transforms/IPO/StripSymbols.cpp
index 33c834058c3..6d0be8fac2d 100644
--- a/llvm/lib/Transforms/IPO/StripSymbols.cpp
+++ b/llvm/lib/Transforms/IPO/StripSymbols.cpp
@@ -306,10 +306,7 @@ bool StripDeadDebugInfo::runOnModule(Module &M) {
SmallVector<Value *, 64> LiveSubprograms;
DenseSet<const MDNode *> VisitedSet;
- for (DebugInfoFinder::iterator CI = F.compile_unit_begin(),
- CE = F.compile_unit_end(); CI != CE; ++CI) {
- // Create our compile unit.
- DICompileUnit DIC(*CI);
+ for (DICompileUnit DIC : F.compile_units()) {
assert(DIC.Verify() && "DIC must verify as a DICompileUnit.");
// Create our live subprogram list.
OpenPOWER on IntegriCloud