Remove the error prone GetTempSymbol API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232487 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2015-03-17 15:02:17 +00:00
parent 7684e7d987
commit 0bea785427
2 changed files with 0 additions and 19 deletions

View 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

View 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));
}