diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-14 10:29:27 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-14 10:29:27 +0000 |
commit | 0e3791efd14092b194e42ae0a384d0b6a065c26b (patch) | |
tree | f1a3fabc5bf98061746ddcc49230f060b887ce55 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | acb0f4795d3d2db092a3741d61839e815179f77f (diff) | |
download | bcm5719-llvm-0e3791efd14092b194e42ae0a384d0b6a065c26b.tar.gz bcm5719-llvm-0e3791efd14092b194e42ae0a384d0b6a065c26b.zip |
Turn push_back loops into append/insert.
llvm-svn: 150471
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 326f147f1af..d6df6e292c2 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -503,8 +503,7 @@ void MachineModuleInfo::TidyLandingPads(DenseMap<MCSymbol*, uintptr_t> *LPMap) { /// indexes. void MachineModuleInfo::setCallSiteLandingPad(MCSymbol *Sym, ArrayRef<unsigned> Sites) { - for (unsigned I = 0, E = Sites.size(); I != E; ++I) - LPadToCallSiteMap[Sym].push_back(Sites[I]); + LPadToCallSiteMap[Sym].append(Sites.begin(), Sites.end()); } /// getTypeIDFor - Return the type id for the specified typeinfo. This is @@ -541,8 +540,7 @@ try_next:; // Add the new filter. int FilterID = -(1 + FilterIds.size()); FilterIds.reserve(FilterIds.size() + TyIds.size() + 1); - for (unsigned I = 0, N = TyIds.size(); I != N; ++I) - FilterIds.push_back(TyIds[I]); + FilterIds.insert(FilterIds.end(), TyIds.begin(), TyIds.end()); FilterEnds.push_back(FilterIds.size()); FilterIds.push_back(0); // terminator return FilterID; |