summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2012-01-07 08:18:37 +0000
committerCameron Zwarich <zwarich@apple.com>2012-01-07 08:18:37 +0000
commit82f000266a93c6e18e7db23c6736a73dd31f46c1 (patch)
tree2c5ad6846c5bca6e2195789a9410641fc75edde9 /utils
parent34786a3ad760b9901912f70a8a17fd85e0643f21 (diff)
downloadllvm-82f000266a93c6e18e7db23c6736a73dd31f46c1.tar.gz
llvm-82f000266a93c6e18e7db23c6736a73dd31f46c1.tar.bz2
llvm-82f000266a93c6e18e7db23c6736a73dd31f46c1.tar.xz
Fix TableGen so that it will emit the correct signature for FastEmit_f:
/// FastEmit_f - This method is called by target-independent code /// to request that an instruction with the given type, opcode, and /// floating-point immediate operand be emitted. virtual unsigned FastEmit_f(MVT VT, MVT RetVT, unsigned Opcode, const ConstantFP *FPImm); Currently, it emits an accidentally overloaded version without the const on the ConstantFP*. This doesn't affect anything in the tree, since nothing causes that method to be autogenerated, but I have been playing with some ARM TableGen refactorings that hit this problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/FastISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp
index 9fdc2e33a5..346723378f 100644
--- a/utils/TableGen/FastISelEmitter.cpp
+++ b/utils/TableGen/FastISelEmitter.cpp
@@ -280,7 +280,7 @@ struct OperandsSignature {
} else if (Operands[i].isImm()) {
OS << "uint64_t imm" << i;
} else if (Operands[i].isFP()) {
- OS << "ConstantFP *f" << i;
+ OS << "const ConstantFP *f" << i;
} else {
llvm_unreachable("Unknown operand kind!");
}