[llvm] [llvm][tblgen] Add `SourcePath` for `emitSourceFileHeader` (PR #65744)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 18:50:05 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");
----------------
chapuni wrote:

I don't like such a hardcoded file name.
Could it be generated from given source file name? (In TableGen or CMakeLists)

https://github.com/llvm/llvm-project/pull/65744


More information about the llvm-commits mailing list