Remove the error prone GetTempSymbol API.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Mar 2015 15:02:17 +0000 (15:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Mar 2015 15:02:17 +0000 (15:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232487 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index ffb4d1b95bbce380096c86cfb3c83c8aa2b82584..9cd9b62612844dbff8b247efb5671dd2e2848784 100644 (file)
@@ -331,13 +331,6 @@ public:
   // Symbol Lowering Routines.
   //===------------------------------------------------------------------===//
 public:
-  /// Return the MCSymbol corresponding to the assembler temporary label with
-  /// the specified stem and unique ID.
-  MCSymbol *GetTempSymbol(const Twine &Name, unsigned ID) const;
-
-  /// Return an assembler temporary label with the specified stem.
-  MCSymbol *GetTempSymbol(const Twine &Name) const;
-
   MCSymbol *createTempSymbol(const Twine &Name, unsigned ID) const;
 
   /// Return the MCSymbol for a private symbol with global value name as its
index 37848510f9a02244646c357c6f9886643d9fe752..c5075273f13e8eac80b539bf2f43b4645876022b 100644 (file)
@@ -2252,18 +2252,6 @@ void AsmPrinter::printOffset(int64_t Offset, raw_ostream &OS) const {
 // Symbol Lowering Routines.
 //===----------------------------------------------------------------------===//
 
-MCSymbol *AsmPrinter::GetTempSymbol(const Twine &Name, unsigned ID) const {
-  const DataLayout *DL = TM.getDataLayout();
-  return OutContext.GetOrCreateSymbol(Twine(DL->getPrivateGlobalPrefix()) +
-                                      Name + Twine(ID));
-}
-
-MCSymbol *AsmPrinter::GetTempSymbol(const Twine &Name) const {
-  const DataLayout *DL = TM.getDataLayout();
-  return OutContext.GetOrCreateSymbol(Twine(DL->getPrivateGlobalPrefix())+
-                                      Name);
-}
-
 MCSymbol *AsmPrinter::createTempSymbol(const Twine &Name, unsigned ID) const {
   return OutContext.createTempSymbol(Name + Twine(ID));
 }