From: Chris Lattner Date: Thu, 11 Mar 2010 21:38:58 +0000 (+0000) Subject: empty symbols aren't possible, the mcsymbol ctor aborts on them. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=19a994766f6c1c62f5a0b973c387c4d303f103f1;p=oota-llvm.git 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 --- diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 8279fd4d07a..cf8177c63a1 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;