summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-02 05:20:37 +0000
committerChris Lattner <sabre@nondot.org>2009-08-02 05:20:37 +0000
commitd90183d25dcbc0eabde56319fed4e8d6ace2e6eb (patch)
tree2265d4015a9ba0966c2bd58c8535a3d0f59bc4cd /lib/Target/ARM/ARMInstrInfo.h
parentb6bbfebdc683a6a123410bca1175e14d264d4bc2 (diff)
downloadllvm-d90183d25dcbc0eabde56319fed4e8d6ace2e6eb.tar.gz
llvm-d90183d25dcbc0eabde56319fed4e8d6ace2e6eb.tar.bz2
llvm-d90183d25dcbc0eabde56319fed4e8d6ace2e6eb.tar.xz
Move the getInlineAsmLength virtual method from TAI to TII, where
the only real caller (GetFunctionSizeInBytes) uses it. The custom ARM implementation of this is basically reimplementing an assembler poorly for negligible gain. It should be removed IMNSHO, but I'll leave that to ARMish folks to decide. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrInfo.h')
-rw-r--r--lib/Target/ARM/ARMInstrInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.h b/lib/Target/ARM/ARMInstrInfo.h
index 5d1678d685..58e16334f3 100644
--- a/lib/Target/ARM/ARMInstrInfo.h
+++ b/lib/Target/ARM/ARMInstrInfo.h
@@ -25,6 +25,7 @@ namespace llvm {
class ARMInstrInfo : public ARMBaseInstrInfo {
ARMRegisterInfo RI;
+ const ARMSubtarget &Subtarget;
public:
explicit ARMInstrInfo(const ARMSubtarget &STI);
@@ -44,6 +45,9 @@ public:
void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
unsigned DestReg, unsigned SubIdx,
const MachineInstr *Orig) const;
+
+ virtual unsigned getInlineAsmLength(const char *Str,
+ const TargetAsmInfo &TAI) const;
};
}