mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Make printing messages nicer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24e03d32ff
commit
22a3b55406
@ -25,8 +25,7 @@ struct ModulePassPrinter : public Pass {
|
||||
ModulePassPrinter(const PassInfo *PI) : PassToPrint(PI) {}
|
||||
|
||||
virtual bool run(Module &M) {
|
||||
std::cout << "Printing Analysis info for Pass "
|
||||
<< PassToPrint->getPassName() << ":\n";
|
||||
std::cout << "Printing analysis '" << PassToPrint->getPassName() << "':\n";
|
||||
getAnalysisID<Pass>(PassToPrint).print(std::cout, &M);
|
||||
|
||||
// Get and print pass...
|
||||
@ -46,8 +45,8 @@ struct FunctionPassPrinter : public FunctionPass {
|
||||
FunctionPassPrinter(const PassInfo *PI) : PassToPrint(PI) {}
|
||||
|
||||
virtual bool runOnFunction(Function &F) {
|
||||
std::cout << "Printing Analysis info for function '" << F.getName()
|
||||
<< "': Pass " << PassToPrint->getPassName() << ":\n";
|
||||
std::cout << "Printing analysis '" << PassToPrint->getPassName()
|
||||
<< "' for function '" << F.getName() << "':\n";
|
||||
getAnalysisID<Pass>(PassToPrint).print(std::cout, F.getParent());
|
||||
|
||||
// Get and print pass...
|
||||
|
Loading…
Reference in New Issue
Block a user