mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Use a range loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -429,9 +429,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
|
|||||||
if (!AsmUsed.empty()) {
|
if (!AsmUsed.empty()) {
|
||||||
llvm::Type *i8PTy = llvm::Type::getInt8PtrTy(Context);
|
llvm::Type *i8PTy = llvm::Type::getInt8PtrTy(Context);
|
||||||
std::vector<Constant*> asmUsed2;
|
std::vector<Constant*> asmUsed2;
|
||||||
for (SmallPtrSet<GlobalValue*, 16>::const_iterator i = AsmUsed.begin(),
|
for (auto *GV : AsmUsed) {
|
||||||
e = AsmUsed.end(); i !=e; ++i) {
|
|
||||||
GlobalValue *GV = *i;
|
|
||||||
Constant *c = ConstantExpr::getBitCast(GV, i8PTy);
|
Constant *c = ConstantExpr::getBitCast(GV, i8PTy);
|
||||||
asmUsed2.push_back(c);
|
asmUsed2.push_back(c);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user