mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
make TargetLoweringObjectFile::getExprForDwarfReference
just make unnamed temp symbols instead of having to come up with its own names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98324 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -326,11 +326,7 @@ getExprForDwarfReference(const MCSymbol *Sym, Mangler *Mang,
|
||||
case dwarf::DW_EH_PE_pcrel: {
|
||||
// Emit a label to the streamer for the current position. This gives us
|
||||
// .-foo addressing.
|
||||
SmallString<128> Name;
|
||||
Mang->getNameWithPrefix(Name, Twine("PCtemp") + Twine(Mang->getUniqueID()),
|
||||
Mangler::Private);
|
||||
|
||||
MCSymbol *PCSym = getContext().GetOrCreateTemporarySymbol(Name.str());
|
||||
MCSymbol *PCSym = getContext().GetOrCreateTemporarySymbol();
|
||||
Streamer.EmitLabel(PCSym);
|
||||
const MCExpr *PC = MCSymbolRefExpr::Create(PCSym, getContext());
|
||||
return MCBinaryExpr::CreateSub(Res, PC, getContext());
|
||||
|
Reference in New Issue
Block a user