================
@@ -58,11 +58,13 @@ struct PassPluginLibraryInfo {
void (*RegisterPassBuilderCallbacks)(PassBuilder &) = nullptr;
/// Callback called before running the back-end passes on the module. The
- /// callback can generate code itself by writing the expected output to OS
and
- /// returning true to prevent the default pipeline and further plugin
- /// callbacks from running.
+ /// callback can generate code itself by writing the expected output to OS
+ /// and returning true to prevent the default pipeline and further plugin
+ /// callbacks from running. DwoOS behaves the same way with respect to the
+ /// return value. It is null unless the .dwo contents go to a separate file.
bool (*PreCodeGenCallback)(Module &, TargetMachine &, CodeGenFileType,
- raw_pwrite_stream &OS) = nullptr;
+ raw_pwrite_stream &OS,
+ raw_pwrite_stream *DwoOS) = nullptr;
----------------
weliveindetail wrote:
CGTestPlugin needed changes anyway. I moved it to examples as Ciao (next to
Bye) in #242038
https://github.com/llvm/llvm-project/pull/241314
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits