diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-11 21:38:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-11 21:38:58 +0000 |
| commit | 99611b8df14e74cf7e721847da0af965106ffee0 (patch) | |
| tree | 9b91136249a85c9f6de92c5284533641b03af38d /lib | |
| parent | 5e318698ce09ecc215fffc3e3cfbe64a79833931 (diff) | |
| download | external_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.cpp | 4 |
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; |
