[llvm-commits] [llvm] r70537 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Bill Wendling
isanbard at gmail.com
Fri May 1 01:35:13 PDT 2009
Author: void
Date: Fri May 1 03:35:12 2009
New Revision: 70537
URL: http://llvm.org/viewvc/llvm-project?rev=70537&view=rev
Log:
Simplify more code.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=70537&r1=70536&r2=70537&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Fri May 1 03:35:12 2009
@@ -3553,15 +3553,10 @@
DenseMap<GlobalVariable *, SmallVector<unsigned, 4> >::iterator
I = InlineInfo.find(GV);
- if (I == InlineInfo.end()) {
- SmallVector<unsigned, 4> Labels;
- Labels.push_back(LabelID);
- InlineInfo[GV] = Labels;
- return;
- }
-
- SmallVector<unsigned, 4> &Labels = I->second;
- Labels.push_back(LabelID);
+ if (I == InlineInfo.end())
+ InlineInfo[GV].push_back(LabelID);
+ else
+ I->second.push_back(LabelID);
}
/// RecordInlinedFnEnd - Indicate the end of inlined subroutine.
More information about the llvm-commits
mailing list