diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-04-16 20:10:13 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-04-16 20:10:13 +0000 |
commit | ae84bbdbedb996b1e1aac8304f8f26f37a4a32de (patch) | |
tree | e73f0a0743d267032c05cc1fae0bb97679dfecf8 /llvm/lib/Target/ARM/ARMRegisterInfo.cpp | |
parent | a15cee1036a5e5c699328a1992a698b84f5d4880 (diff) | |
download | llvm-ae84bbdbedb996b1e1aac8304f8f26f37a4a32de.zip llvm-ae84bbdbedb996b1e1aac8304f8f26f37a4a32de.tar.gz llvm-ae84bbdbedb996b1e1aac8304f8f26f37a4a32de.tar.bz2 |
Infrastructure for getting the machine code size of a function and an instruction. X86, PowerPC and ARM are implemented
llvm-svn: 49809
Diffstat (limited to 'llvm/lib/Target/ARM/ARMRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMRegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp index a9d7d6c..7787f43 100644 --- a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp @@ -948,7 +948,7 @@ ARMRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF, bool ForceLRSpill = false; if (!LRSpilled && AFI->isThumbFunction()) { - unsigned FnSize = ARM::GetFunctionSize(MF); + unsigned FnSize = TII.GetFunctionSizeInBytes(MF); // Force LR to be spilled if the Thumb function size is > 2048. This enables // use of BL to implement far jump. If it turns out that it's not needed // then the branch fix up path will undo it. |