diff options
| author | Cameron Zwarich <zwarich@apple.com> | 2012-01-07 08:18:37 +0000 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@apple.com> | 2012-01-07 08:18:37 +0000 |
| commit | e47e682bec7fe906c6a1e45991ad8a3a42d5b300 (patch) | |
| tree | 53a461578322ded214149e6e9698a51d33ccef21 /llvm/utils | |
| parent | 434fb37bb4a1025eca9f0179d71cd3a711829c40 (diff) | |
| download | bcm5719-llvm-e47e682bec7fe906c6a1e45991ad8a3a42d5b300.tar.gz bcm5719-llvm-e47e682bec7fe906c6a1e45991ad8a3a42d5b300.zip | |
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.
llvm-svn: 147727
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/TableGen/FastISelEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp index 9fdc2e33a54..346723378f2 100644 --- a/llvm/utils/TableGen/FastISelEmitter.cpp +++ b/llvm/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!"); } |

