In addition, move the definition of the class into the Debugify.h, so we can use it from different levels.
The motivation for this is D82547.
Paths
| Differential D83391
[NFC][Debugify] Rename OptCustomPassManager into DebugifyCustomPassManager ClosedPublic Authored by djtodoro on Jul 8 2020, 5:57 AM.
Details Summary In addition, move the definition of the class into the Debugify.h, so we can use it from different levels. The motivation for this is D82547.
Diff Detail Event Timeline
djtodoro added inline comments.
This revision is now accepted and ready to land.Jul 20 2020, 6:13 PM Closed by commit rG30b015dbe9cc: [NFC][Debugify] Rename OptCustomPassManager into DebugifyCustomPassManager (authored by djtodoro). · Explain WhyJul 21 2020, 3:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 276395 llvm/include/llvm/IR/LegacyPassManager.h
llvm/lib/IR/LegacyPassManager.cpp
llvm/tools/opt/opt.cpp
|
The layering for this seems a bit strange, as LegacyPassManager doesn't have much to do with 'debugify'. How does moving the class into Debugify.h, and the class implementation into Debugify.cpp sound? That way, the new-PM version of this can live in the same files.