[llvm-commits] [llvm] r98288 - /llvm/trunk/lib/MC/MCContext.cpp
Chris Lattner
sabre at nondot.org
Thu Mar 11 13:38:58 PST 2010
Author: lattner
Date: Thu Mar 11 15:38:58 2010
New Revision: 98288
URL: http://llvm.org/viewvc/llvm-project?rev=98288&view=rev
Log:
empty symbols aren't possible, the mcsymbol ctor aborts on them.
Modified:
llvm/trunk/lib/MC/MCContext.cpp
Modified: llvm/trunk/lib/MC/MCContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCContext.cpp?rev=98288&r1=98287&r2=98288&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCContext.cpp (original)
+++ llvm/trunk/lib/MC/MCContext.cpp Thu Mar 11 15:38:58 2010
@@ -38,10 +38,6 @@
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;
More information about the llvm-commits
mailing list