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 | 216e7299d77018347d233ed2a7955455e655fdb5 (patch) | |
tree | a1b072e7a3f102e5d0858ded16afa006a3ded6b7 /llvm/lib | |
parent | c1d1229d78c04b878c09a3dcac0bee6c23ab5bd7 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/MC/MCContext.cpp | 4 |
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; |