aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-11 21:38:58 +0000
committerChris Lattner <sabre@nondot.org>2010-03-11 21:38:58 +0000
commit19a994766f6c1c62f5a0b973c387c4d303f103f1 (patch)
tree9b91136249a85c9f6de92c5284533641b03af38d /lib/MC/MCContext.cpp
parentc0b5dce3fa24202d842cdcd1eff9e02b33e22309 (diff)
empty symbols aren't possible, the mcsymbol ctor aborts on them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r--lib/MC/MCContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp
index 8279fd4d07..cf8177c63a 100644
--- 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;