Give passes nice names!
authorChris Lattner <sabre@nondot.org>
Sun, 15 Dec 2002 21:13:40 +0000 (21:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Dec 2002 21:13:40 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5059 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/MachineCodeEmitter.cpp
lib/Target/X86/Printer.cpp
lib/Target/X86/X86AsmPrinter.cpp
lib/Target/X86/X86CodeEmitter.cpp
lib/Target/X86/X86ISelSimple.cpp

index c4361565611fb9a08841c4b05c2f3af35a509ee2..4709a88da415b522e7d8826ce26cb4a83c007507 100644 (file)
@@ -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
index 9b88f1209008e4a715423280587a77149e570e1d..38d1be6a59bb148ca3c47f7c78a7729b7d03867f 100644 (file)
@@ -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);
index 88dc554957e12d8e775b1bec3b2a22f1285db3c5..84b43a06785374537a2acff183533a5183e70da3 100644 (file)
@@ -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);
   };
 }
index 88dc554957e12d8e775b1bec3b2a22f1285db3c5..84b43a06785374537a2acff183533a5183e70da3 100644 (file)
@@ -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);
   };
 }
index 9b88f1209008e4a715423280587a77149e570e1d..38d1be6a59bb148ca3c47f7c78a7729b7d03867f 100644 (file)
@@ -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);
index c4361565611fb9a08841c4b05c2f3af35a509ee2..4709a88da415b522e7d8826ce26cb4a83c007507 100644 (file)
@@ -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