aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16/PIC16AsmPrinter.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-04-22 12:02:36 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-04-22 12:02:36 +0000
commitdd92dba64425707dec7a541120112c1f911f1ed2 (patch)
tree5c31891ea666bb5a0cca6b571696d54222bad9a2 /lib/Target/PIC16/PIC16AsmPrinter.cpp
parent4a0adb768696705ad103fc80ceff3594fdb11b3b (diff)
downloadexternal_llvm-dd92dba64425707dec7a541120112c1f911f1ed2.zip
external_llvm-dd92dba64425707dec7a541120112c1f911f1ed2.tar.gz
external_llvm-dd92dba64425707dec7a541120112c1f911f1ed2.tar.bz2
Make the function begin label start after ther data pointer.
The address of data frame for function can be obtained by subtracting 2 from the function begin label. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16AsmPrinter.cpp')
-rw-r--r--lib/Target/PIC16/PIC16AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp
index a126816..e16e9ad 100644
--- a/lib/Target/PIC16/PIC16AsmPrinter.cpp
+++ b/lib/Target/PIC16/PIC16AsmPrinter.cpp
@@ -116,9 +116,9 @@ bool PIC16AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
SwitchToSection (fCodeSection);
// Emit the frame address of the function at the beginning of code.
- O << CurrentFnName << ":\n";
O << " retlw low(" << FunctionLabelBegin<< CurrentFnName << ".frame)\n";
O << " retlw high(" << FunctionLabelBegin<< CurrentFnName << ".frame)\n";
+ O << CurrentFnName << ":\n";
// Print out code for the function.