projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d1285
)
Simplify more code.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 1 May 2009 08:35:12 +0000
(08:35 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 1 May 2009 08:35:12 +0000
(08:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70537
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index c61a5a86af745f4c9b45f7a2186fd7b9a6323964..7afb7596106682f5e42cebd0ba84b1c8fffd2a20 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@
-3553,15
+3553,10
@@
public:
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.