diff options
author | Shao-Ce SUN <ssc@lanxincomputing.com> | 2023-09-26 13:40:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 13:40:56 +0800 |
commit | b0e28eb832710964067a17d845de15ada2da2b9c (patch) | |
tree | 646985f0db68d1fdb30611e553e368f487e51a49 /lldb/utils | |
parent | f74e274af70d88a81a9f313864ea486a10a12d13 (diff) | |
download | llvm-b0e28eb832710964067a17d845de15ada2da2b9c.zip llvm-b0e28eb832710964067a17d845de15ada2da2b9c.tar.gz llvm-b0e28eb832710964067a17d845de15ada2da2b9c.tar.bz2 |
[llvm][tblgen] Add `Source Filename` for `emitSourceFileHeader` (#65744)
I think this is very helpful for reading generated `.inc` files.
Diffstat (limited to 'lldb/utils')
-rw-r--r-- | lldb/utils/TableGen/LLDBOptionDefEmitter.cpp | 2 | ||||
-rw-r--r-- | lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp b/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp index b936b8f..b48a0e4 100644 --- a/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp +++ b/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp @@ -171,7 +171,7 @@ static void emitOptions(std::string Command, std::vector<Record *> Records, } void lldb_private::EmitOptionDefs(RecordKeeper &Records, raw_ostream &OS) { - emitSourceFileHeader("Options for LLDB command line commands.", OS); + emitSourceFileHeader("Options for LLDB command line commands.", OS, Records); std::vector<Record *> Options = Records.getAllDerivedDefinitions("Option"); for (auto &CommandRecordPair : getRecordsByName(Options, "Command")) { diff --git a/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp b/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp index e3522f2..f27f0f3 100644 --- a/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp +++ b/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp @@ -168,7 +168,7 @@ static void emitPropertyEnum(std::string PropertyName, } void lldb_private::EmitPropertyDefs(RecordKeeper &Records, raw_ostream &OS) { - emitSourceFileHeader("Property definitions for LLDB.", OS); + emitSourceFileHeader("Property definitions for LLDB.", OS, Records); std::vector<Record *> Properties = Records.getAllDerivedDefinitions("Property"); @@ -179,7 +179,7 @@ void lldb_private::EmitPropertyDefs(RecordKeeper &Records, raw_ostream &OS) { void lldb_private::EmitPropertyEnumDefs(RecordKeeper &Records, raw_ostream &OS) { - emitSourceFileHeader("Property definition enum for LLDB.", OS); + emitSourceFileHeader("Property definition enum for LLDB.", OS, Records); std::vector<Record *> Properties = Records.getAllDerivedDefinitions("Property"); |