mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Changed lowering and asmprinter to use ABI Names class called PAN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -76,8 +76,7 @@ void PIC16InstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
|
||||
const Function *Func = MBB.getParent()->getFunction();
|
||||
const std::string FuncName = Func->getName();
|
||||
|
||||
char *tmpName = new char [strlen(FuncName.c_str()) + 10];
|
||||
sprintf(tmpName, "%s.temp.", FuncName.c_str());
|
||||
const char *tmpName = createESName(PAN::getTempdataLabel(FuncName));
|
||||
|
||||
// On the order of operands here: think "movwf SrcReg, tmp_slot, offset".
|
||||
if (RC == PIC16::GPRRegisterClass) {
|
||||
@@ -119,8 +118,7 @@ void PIC16InstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
|
||||
const Function *Func = MBB.getParent()->getFunction();
|
||||
const std::string FuncName = Func->getName();
|
||||
|
||||
char *tmpName = new char [strlen(FuncName.c_str()) + 10];
|
||||
sprintf(tmpName, "%s.temp.", FuncName.c_str());
|
||||
const char *tmpName = createESName(PAN::getTempdataLabel(FuncName));
|
||||
|
||||
// On the order of operands here: think "movf FrameIndex, W".
|
||||
if (RC == PIC16::GPRRegisterClass) {
|
||||
|
||||
Reference in New Issue
Block a user