empty symbols aren't possible, the mcsymbol ctor aborts on them.
authorChris Lattner <sabre@nondot.org>
Thu, 11 Mar 2010 21:38:58 +0000 (21:38 +0000)
committerChris 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

index 8279fd4d07ac0a9ce4a54bb4c527d3d49abf17f0..cf8177c63a1bfc6655395932e680790e696800c0 100644 (file)
@@ -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;