summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit216e7299d77018347d233ed2a7955455e655fdb5 (patch)
treea1b072e7a3f102e5d0858ded16afa006a3ded6b7 /llvm/lib/MC/MCContext.cpp
parentc1d1229d78c04b878c09a3dcac0bee6c23ab5bd7 (diff)
downloadbcm5719-llvm-216e7299d77018347d233ed2a7955455e655fdb5.tar.gz
bcm5719-llvm-216e7299d77018347d233ed2a7955455e655fdb5.zip
empty symbols aren't possible, the mcsymbol ctor aborts on them.
llvm-svn: 98288
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r--llvm/lib/MC/MCContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 8279fd4d07a..cf8177c63a1 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud