mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
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:
parent
7684e7d987
commit
0bea785427
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user