summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-17 05:41:18 +0000
committerChris Lattner <sabre@nondot.org>2010-03-17 05:41:18 +0000
commitaed00fa039c5ff743a826cbc98e8eeba87ff23d9 (patch)
tree0db04ae2e8f673a646b25e6ad291f67165eb8ed0 /llvm/lib/MC/MCContext.cpp
parentfb803d7dcb0341480d8c55d31fe0a6b6dcbe8ca9 (diff)
downloadbcm5719-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.cpp11
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);
OpenPOWER on IntegriCloud