Rename MachineInstr::getInstrDescriptor -> getDesc(), which reflects
[oota-llvm.git] / include / llvm / CodeGen / MachineFunctionPass.h
index 9a8d29b3c8a7dc66b6005f5c893ebd12f744a4d4..a72563fb0af5fdfca6b4b81be4cb47e82e6b321a 100644 (file)
@@ -2,8 +2,8 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -28,17 +28,20 @@ struct MachineFunctionPass : public FunctionPass {
 
   explicit MachineFunctionPass(intptr_t ID) : FunctionPass(ID) {}
 
+protected:
   /// runOnMachineFunction - This method must be overloaded to perform the
   /// desired machine code transformation or analysis.
   ///
   virtual bool runOnMachineFunction(MachineFunction &MF) = 0;
 
+public:
   // FIXME: This pass should declare that the pass does not invalidate any LLVM
   // passes.
-  virtual bool runOnFunction(Function &F) {
+  bool runOnFunction(Function &F) {
     return runOnMachineFunction(MachineFunction::get(&F));
   }
   
+private:
   virtual void virtfn();  // out of line virtual fn to give class a home.
 };