aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-10-08 00:21:28 +0000
committerJim Grosbach <grosbach@apple.com>2010-10-08 00:21:28 +0000
commitbade37bb8b83deefa166776b1b5185c237a42e71 (patch)
tree2be1962f87a170477cdfdc29092c369af589016b /utils/TableGen/CodeEmitterGen.cpp
parent05e27c5786d7ecde5d9c4b28e3632c14832cfb34 (diff)
downloadexternal_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 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--utils/TableGen/CodeEmitterGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index ac08512..a039e0b 100644
--- a/utils/TableGen/CodeEmitterGen.cpp
+++ b/utils/TableGen/CodeEmitterGen.cpp
@@ -81,7 +81,7 @@ void CodeEmitterGen::run(raw_ostream &o) {
// Emit function declaration
o << "unsigned " << Target.getName() << "CodeEmitter::"
- << "getBinaryCodeForInstr(const MachineInstr &MI) {\n";
+ << "getBinaryCodeForInstr(const MachineInstr &MI) const {\n";
// Emit instruction base values
o << " static const unsigned InstBits[] = {\n";