[llvm-commits] [llvm] r70534 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Bill Wendling
isanbard at gmail.com
Fri May 1 01:32:15 PDT 2009
Author: void
Date: Fri May 1 03:32:14 2009
New Revision: 70534
URL: http://llvm.org/viewvc/llvm-project?rev=70534&view=rev
Log:
Simplify some 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=70534&r1=70533&r2=70534&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Fri May 1 03:32:14 2009
@@ -3545,14 +3545,11 @@
DenseMap<GlobalVariable *, SmallVector<DbgScope *, 2> >::iterator
SI = DbgInlinedScopeMap.find(GV);
- if (SI == DbgInlinedScopeMap.end()) {
- SmallVector<DbgScope *, 2> Scopes;
- Scopes.push_back(Scope);
- DbgInlinedScopeMap[GV] = Scopes;
- } else {
- SmallVector<DbgScope *, 2> &Scopes = SI->second;
- Scopes.push_back(Scope);
- }
+
+ if (SI == DbgInlinedScopeMap.end())
+ DbgInlinedScopeMap[GV].push_back(Scope);
+ else
+ SI->second.push_back(Scope);
DenseMap<GlobalVariable *, SmallVector<unsigned, 4> >::iterator
I = InlineInfo.find(GV);
More information about the llvm-commits
mailing list