aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit99611b8df14e74cf7e721847da0af965106ffee0 (patch)
tree9b91136249a85c9f6de92c5284533641b03af38d /lib
parent5e318698ce09ecc215fffc3e3cfbe64a79833931 (diff)
downloadexternal_llvm-99611b8df14e74cf7e721847da0af965106ffee0.zip
external_llvm-99611b8df14e74cf7e721847da0af965106ffee0.tar.gz
external_llvm-99611b8df14e74cf7e721847da0af965106ffee0.tar.bz2
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')
-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 8279fd4..cf8177c 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;