diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-31 13:45:49 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-31 13:45:49 +0000 |
commit | b4c9d9c51fcb8a4cad2336b1ad9d225f504bbc4c (patch) | |
tree | 67ecf73ff1ee68f388a77b5960f50c9ad95a62bb /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | e03d9e4ec7037526b94ce91985e7ff82ebc069fa (diff) | |
download | llvm-b4c9d9c51fcb8a4cad2336b1ad9d225f504bbc4c.tar.gz llvm-b4c9d9c51fcb8a4cad2336b1ad9d225f504bbc4c.tar.bz2 llvm-b4c9d9c51fcb8a4cad2336b1ad9d225f504bbc4c.tar.xz |
Replace some instances of UniqueVector with SetVector, which is slightly cheaper.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 7ac0af7030..2b34e561e8 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -850,9 +850,9 @@ void DwarfDebug::endModule() { Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("data_end")); // End text sections. - for (unsigned i = 1, N = SectionMap.size(); i <= N; ++i) { - Asm->OutStreamer.SwitchSection(SectionMap[i]); - Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("section_end", i)); + for (unsigned I = 0, E = SectionMap.size(); I != E; ++I) { + Asm->OutStreamer.SwitchSection(SectionMap[I]); + Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("section_end", I+1)); } // Compute DIE offsets and sizes. |