remove some dead print method variants.
authorChris Lattner <sabre@nondot.org>
Sun, 23 Aug 2009 01:03:30 +0000 (01:03 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 23 Aug 2009 01:03:30 +0000 (01:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79801 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineBasicBlock.h
include/llvm/CodeGen/MachineFunction.h
lib/CodeGen/MachineVerifier.cpp

index 787b33bc382c62a23f99b0bd867f76f1cac40301..7d6ecf9f1b58e189ae1498fa733026c8d729c463 100644 (file)
@@ -311,13 +311,7 @@ public:
   // Debugging methods.
   void dump() const;
   void print(std::ostream &OS) const;
-  void print(std::ostream *OS) const {
-    if (OS) print(*OS); 
-  }
   void print(raw_ostream &OS) const;
-  void print(raw_ostream *OS) const {
-    if (OS) print(*OS);
-  }
 
   /// getNumber - MachineBasicBlocks are uniquely numbered at the function
   /// level, unless they're not in a MachineFunction yet, in which case this
index e4681d9292b6a723227d8f400807f7c39420b854..055baac07c1141791d12a15013f232e3be55dffb 100644 (file)
@@ -208,9 +208,6 @@ public:
   /// to the specified stream.
   ///
   void print(std::ostream &OS) const;
-  void print(std::ostream *OS) const {
-    if (OS) print(*OS); 
-  }
 
   /// viewCFG - This function is meant for use from the debugger.  You can just
   /// say 'call F->viewCFG()' and a ghostview window should pop up from the
index eb9ef954750db847b9ad828a60af262cb09a8c48..238f90568fc56174ceed5745705d16df9f2be607 100644 (file)
@@ -232,13 +232,11 @@ MachineVerifier::runOnMachineFunction(MachineFunction &MF)
   return false;                 // no changes
 }
 
-void
-MachineVerifier::report(const char *msg, const MachineFunction *MF)
-{
+void MachineVerifier::report(const char *msg, const MachineFunction *MF) {
   assert(MF);
   *OS << "\n";
   if (!foundErrors++)
-    MF->print(OS);
+    MF->print(*OS);
   *OS << "*** Bad machine code: " << msg << " ***\n"
       << "- function:    " << MF->getFunction()->getNameStr() << "\n";
 }