diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-17 05:41:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-17 05:41:18 +0000 |
commit | aed00fa039c5ff743a826cbc98e8eeba87ff23d9 (patch) | |
tree | 0db04ae2e8f673a646b25e6ad291f67165eb8ed0 /llvm/lib/MC/MCContext.cpp | |
parent | fb803d7dcb0341480d8c55d31fe0a6b6dcbe8ca9 (diff) | |
download | bcm5719-llvm-aed00fa039c5ff743a826cbc98e8eeba87ff23d9.tar.gz bcm5719-llvm-aed00fa039c5ff743a826cbc98e8eeba87ff23d9.zip |
fix GetOrCreateTemporarySymbol to require a name, clients
should use CreateTempSymbol() if they don't care about the
name.
llvm-svn: 98712
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r-- | llvm/lib/MC/MCContext.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 70c89a2333a..37e82825260 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -49,17 +49,6 @@ MCSymbol *MCContext::CreateTempSymbol() { "tmp" + Twine(NextUniqueID++)); } - -MCSymbol *MCContext::GetOrCreateTemporarySymbol(StringRef Name) { - // If there is no name, create a new anonymous symbol. - // FIXME: Remove this. This form of the method should always take a name. - if (Name.empty()) - return GetOrCreateTemporarySymbol(Twine(MAI.getPrivateGlobalPrefix()) + - "tmp" + Twine(NextUniqueID++)); - - return GetOrCreateSymbol(Name, true); -} - MCSymbol *MCContext::GetOrCreateTemporarySymbol(const Twine &Name) { SmallString<128> NameSV; Name.toVector(NameSV); |