Skip to content

Commit f9cba2e

Browse files
authored
[LLVM][TableGen] Change InstrInfoEmitter to use const RecordKeeper (#110110)
Change InstrInfoEmitter to use const RecordKeeper. This is a part of effort to have better const correctness in TableGen backends: https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
1 parent 95c0e03 commit f9cba2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/InstrInfoEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ void InstrInfoEmitter::emitEnums(raw_ostream &OS) {
13571357
OS << "#endif // GET_INSTRINFO_SCHED_ENUM\n\n";
13581358
}
13591359

1360-
static void EmitInstrInfo(RecordKeeper &RK, raw_ostream &OS) {
1360+
static void EmitInstrInfo(const RecordKeeper &RK, raw_ostream &OS) {
13611361
RK.startTimer("Analyze DAG patterns");
13621362
InstrInfoEmitter(RK).run(OS);
13631363
RK.startTimer("Emit map table");

0 commit comments

Comments
 (0)