From: Chris Lattner Date: Sun, 15 Dec 2002 21:13:40 +0000 (+0000) Subject: Give passes nice names! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f0eb7beb66d7402ba7ef32466aa6d9a53c33da01;p=oota-llvm.git Give passes nice names! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5059 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index c4361565611..4709a88da41 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -91,6 +91,10 @@ namespace { return false; // We never modify the LLVM itself. } + virtual const char *getPassName() const { + return "X86 Simple Instruction Selection"; + } + /// visitBasicBlock - This method is called when we are visiting a new basic /// block. This simply creates a new MachineBasicBlock to emit code into /// and adds it to the current MachineFunction. Subsequent visit* for diff --git a/lib/Target/X86/MachineCodeEmitter.cpp b/lib/Target/X86/MachineCodeEmitter.cpp index 9b88f120900..38d1be6a59b 100644 --- a/lib/Target/X86/MachineCodeEmitter.cpp +++ b/lib/Target/X86/MachineCodeEmitter.cpp @@ -25,6 +25,10 @@ namespace { bool runOnFunction(Function &F); + virtual const char *getPassName() const { + return "X86 Machine Code Emitter"; + } + private: void emitBasicBlock(MachineBasicBlock &MBB); void emitInstruction(MachineInstr &MI); diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp index 88dc554957e..84b43a06785 100644 --- a/lib/Target/X86/Printer.cpp +++ b/lib/Target/X86/Printer.cpp @@ -21,6 +21,10 @@ namespace { Printer(TargetMachine &tm, std::ostream &o) : TM(tm), O(o) {} + virtual const char *getPassName() const { + return "X86 Assembly Printer"; + } + bool runOnFunction(Function &F); }; } diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index 88dc554957e..84b43a06785 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -21,6 +21,10 @@ namespace { Printer(TargetMachine &tm, std::ostream &o) : TM(tm), O(o) {} + virtual const char *getPassName() const { + return "X86 Assembly Printer"; + } + bool runOnFunction(Function &F); }; } diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index 9b88f120900..38d1be6a59b 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -25,6 +25,10 @@ namespace { bool runOnFunction(Function &F); + virtual const char *getPassName() const { + return "X86 Machine Code Emitter"; + } + private: void emitBasicBlock(MachineBasicBlock &MBB); void emitInstruction(MachineInstr &MI); diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index c4361565611..4709a88da41 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -91,6 +91,10 @@ namespace { return false; // We never modify the LLVM itself. } + virtual const char *getPassName() const { + return "X86 Simple Instruction Selection"; + } + /// visitBasicBlock - This method is called when we are visiting a new basic /// block. This simply creates a new MachineBasicBlock to emit code into /// and adds it to the current MachineFunction. Subsequent visit* for