diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-04-22 12:02:36 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-04-22 12:02:36 +0000 |
commit | 107b2818ce78b3e5ee96ca307e349955ed99d3d0 (patch) | |
tree | fac5488f558e16c1ccc5ee90b87561e1bb2f47a7 /llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp | |
parent | 202f3dc5b33515bfc904f0f30ccd505021765579 (diff) | |
download | bcm5719-llvm-107b2818ce78b3e5ee96ca307e349955ed99d3d0.tar.gz bcm5719-llvm-107b2818ce78b3e5ee96ca307e349955ed99d3d0.zip |
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.
llvm-svn: 69801
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp index a1268166488..e16e9ad46d0 100644 --- a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp +++ b/llvm/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. |