aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16/PIC16InstrInfo.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-05-10 05:23:47 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-05-10 05:23:47 +0000
commit211f3624ef2768cca0891a284660bcf2673e80ce (patch)
treeda281d36112dd584125787ad67746d1c6809391a /lib/Target/PIC16/PIC16InstrInfo.cpp
parentc677fe5abaf903a3a5cb8fbd8e515c46e9e7a537 (diff)
downloadexternal_llvm-211f3624ef2768cca0891a284660bcf2673e80ce.zip
external_llvm-211f3624ef2768cca0891a284660bcf2673e80ce.tar.gz
external_llvm-211f3624ef2768cca0891a284660bcf2673e80ce.tar.bz2
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
Diffstat (limited to 'lib/Target/PIC16/PIC16InstrInfo.cpp')
-rw-r--r--lib/Target/PIC16/PIC16InstrInfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/PIC16/PIC16InstrInfo.cpp b/lib/Target/PIC16/PIC16InstrInfo.cpp
index 9185437..c8cab34 100644
--- a/lib/Target/PIC16/PIC16InstrInfo.cpp
+++ b/lib/Target/PIC16/PIC16InstrInfo.cpp
@@ -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) {