aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-19 20:29:14 +0000
committerChris Lattner <sabre@nondot.org>2005-08-19 20:29:14 +0000
commit8d30c23d2638bdc9a3e4fc7ba764adf5df043ee5 (patch)
tree8520426ae52ae8e65e6bbd8f757e6a24b23f7819
parent60200e5d32f63b4e54575f5cbec348f3f9baeb5d (diff)
Emit this:
static const TargetOperandInfo OperandInfo6[] = { { &PPC32::CRRCRegClass }, { 0 }, }; instead of this: static const TargetOperandInfo OperandInfo6[] = { { PPC32::CRRCRegisterClass }, { 0 }, }; For operand information, which does not require dynamic (startup-time) initialization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22931 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index fbaf37fe02..53c15a5f36 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -136,8 +136,7 @@ void InstrInfoEmitter::run(std::ostream &OS) {
OS << "static const TargetOperandInfo OperandInfo" << N << "[] = { ";
for (unsigned i = 0, e = OperandInfo.size(); i != e; ++i) {
if (Record *RC = OperandInfo[i]) {
- // FIXME: BAD: REQUIRES RUNTIME INIT
- OS << "{ " << getQualifiedName(RC) << "RegisterClass }, ";
+ OS << "{ &" << getQualifiedName(RC) << "RegClass }, ";
} else {
OS << "{ 0 }, ";
}