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:
c0b5dce
)
empty symbols aren't possible, the mcsymbol ctor aborts on them.
author
Chris Lattner
<sabre@nondot.org>
Thu, 11 Mar 2010 21:38:58 +0000
(21:38 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 11 Mar 2010 21:38:58 +0000
(21:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98288
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCContext.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCContext.cpp
b/lib/MC/MCContext.cpp
index 8279fd4d07ac0a9ce4a54bb4c527d3d49abf17f0..cf8177c63a1bfc6655395932e680790e696800c0 100644
(file)
--- a/
lib/MC/MCContext.cpp
+++ b/
lib/MC/MCContext.cpp
@@
-38,10
+38,6
@@
MCSymbol *MCContext::GetOrCreateSymbol(const Twine &Name) {
MCSymbol *MCContext::GetOrCreateTemporarySymbol(StringRef Name) {
- // If unnamed, just create a symbol.
- if (Name.empty())
- new (*this) MCSymbol("", true);
-
// Otherwise create as usual.
MCSymbol *&Entry = Symbols[Name];
if (Entry) return Entry;