diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-10-08 00:21:28 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-10-08 00:21:28 +0000 |
commit | bade37bb8b83deefa166776b1b5185c237a42e71 (patch) | |
tree | 2be1962f87a170477cdfdc29092c369af589016b /lib/Target/ARM | |
parent | 05e27c5786d7ecde5d9c4b28e3632c14832cfb34 (diff) | |
download | external_llvm-bade37bb8b83deefa166776b1b5185c237a42e71.zip external_llvm-bade37bb8b83deefa166776b1b5185c237a42e71.tar.gz external_llvm-bade37bb8b83deefa166776b1b5185c237a42e71.tar.bz2 |
Make <target>CodeEmitter::getBinaryCodeForInstr() a const method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMCodeEmitter.cpp | 2 | ||||
-rw-r--r-- | lib/Target/ARM/ARMMCCodeEmitter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index b31ac5b..1525daa 100644 --- a/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/lib/Target/ARM/ARMCodeEmitter.cpp @@ -74,7 +74,7 @@ namespace { /// getBinaryCodeForInstr - This function, generated by the /// CodeEmitterGenerator using TableGen, produces the binary encoding for /// machine instructions. - unsigned getBinaryCodeForInstr(const MachineInstr &MI); + unsigned getBinaryCodeForInstr(const MachineInstr &MI) const; bool runOnMachineFunction(MachineFunction &MF); diff --git a/lib/Target/ARM/ARMMCCodeEmitter.cpp b/lib/Target/ARM/ARMMCCodeEmitter.cpp index 35319a4..908f6f0 100644 --- a/lib/Target/ARM/ARMMCCodeEmitter.cpp +++ b/lib/Target/ARM/ARMMCCodeEmitter.cpp @@ -40,7 +40,7 @@ public: // getBinaryCodeForInstr - TableGen'erated function for getting the // binary encoding for an instruction. - unsigned getBinaryCodeForInstr(const MCInst &MI); + unsigned getBinaryCodeForInstr(const MCInst &MI) const; /// getMachineOpValue - Return binary encoding of operand. If the machine /// operand requires relocation, record the relocation and return zero. |