[llvm] r232487 - Remove the error prone GetTempSymbol API.

Rafael Espindola rafael.espindola at gmail.com
Tue Mar 17 08:02:17 PDT 2015


Author: rafael
Date: Tue Mar 17 10:02:17 2015
New Revision: 232487

URL: http://llvm.org/viewvc/llvm-project?rev=232487&view=rev
Log:
Remove the error prone GetTempSymbol API.

Modified:
    llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=232487&r1=232486&r2=232487&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Tue Mar 17 10:02:17 2015
@@ -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

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=232487&r1=232486&r2=232487&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Tue Mar 17 10:02:17 2015
@@ -2252,18 +2252,6 @@ void AsmPrinter::printOffset(int64_t Off
 // 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));
 }





More information about the llvm-commits mailing list