[llvm] r207996 - Use a range loop.
Rafael Espindola
rafael.espindola at gmail.com
Mon May 5 13:06:41 PDT 2014
Author: rafael
Date: Mon May 5 15:06:41 2014
New Revision: 207996
URL: http://llvm.org/viewvc/llvm-project?rev=207996&view=rev
Log:
Use a range loop.
Modified:
llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
Modified: llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOCodeGenerator.cpp?rev=207996&r1=207995&r2=207996&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/lib/LTO/LTOCodeGenerator.cpp Mon May 5 15:06:41 2014
@@ -429,9 +429,7 @@ void LTOCodeGenerator::applyScopeRestric
if (!AsmUsed.empty()) {
llvm::Type *i8PTy = llvm::Type::getInt8PtrTy(Context);
std::vector<Constant*> asmUsed2;
- for (SmallPtrSet<GlobalValue*, 16>::const_iterator i = AsmUsed.begin(),
- e = AsmUsed.end(); i !=e; ++i) {
- GlobalValue *GV = *i;
+ for (auto *GV : AsmUsed) {
Constant *c = ConstantExpr::getBitCast(GV, i8PTy);
asmUsed2.push_back(c);
}
More information about the llvm-commits
mailing list