[llvm] [llvm][tblgen] Add `SourcePath` for `emitSourceFileHeader` (PR #65744)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 16 13:07:13 PDT 2023
================
@@ -30,7 +30,8 @@ class VTEmitter {
} // End anonymous namespace.
void VTEmitter::run(raw_ostream &OS) {
- emitSourceFileHeader("ValueTypes Source Fragment", OS);
+ emitSourceFileHeader("ValueTypes Source Fragment", OS,
+ "llvm/include/llvm/CodeGen/ValueTypes.td");
----------------
topperc wrote:
You can get the input file from RecordKeeper::getInputFileName()
https://github.com/llvm/llvm-project/pull/65744
More information about the llvm-commits
mailing list