mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
[PM] Simplify the interface exposed for IR printing passes.
Nothing was using the ability of the pass to delete the raw_ostream it printed to, and nothing was trying to pass it a pointer to the raw_ostream. Also, the function variant had a different order of arguments from all of the others which was just really confusing. Now the interface accepts a reference, doesn't offer to delete it, and uses a consistent order. The implementation of the printing passes haven't been updated with this simplification, this is just the API switch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -235,7 +235,7 @@ public:
|
||||
|
||||
/// createPrinterPass - Get a function printer pass.
|
||||
Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const {
|
||||
return createPrintFunctionPass(Banner, &O);
|
||||
return createPrintFunctionPass(O, Banner);
|
||||
}
|
||||
|
||||
// Prepare for running an on the fly pass, freeing memory if needed
|
||||
@ -304,7 +304,7 @@ public:
|
||||
|
||||
/// createPrinterPass - Get a module printer pass.
|
||||
Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const {
|
||||
return createPrintModulePass(&O, false, Banner);
|
||||
return createPrintModulePass(O, Banner);
|
||||
}
|
||||
|
||||
/// run - Execute all of the passes scheduled for execution. Keep track of
|
||||
@ -404,7 +404,7 @@ public:
|
||||
|
||||
/// createPrinterPass - Get a module printer pass.
|
||||
Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const {
|
||||
return createPrintModulePass(&O, false, Banner);
|
||||
return createPrintModulePass(O, Banner);
|
||||
}
|
||||
|
||||
/// run - Execute all of the passes scheduled for execution. Keep track of
|
||||
|
Reference in New Issue
Block a user