Added TargetPassConfig::enablePass
authorAndrew Trick <atrick@apple.com>
Fri, 9 Mar 2012 00:52:17 +0000 (00:52 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 9 Mar 2012 00:52:17 +0000 (00:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152359 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/Passes.h

index 8ce339da634fd47aa5c44df530c06a5e9fadbbf5..19a1acbb70af0ef1ba14c6a9c0d4a21ebb52807e 100644 (file)
@@ -101,7 +101,10 @@ public:
   /// point where StadardID is expected, add TargetID in its place.
   void substitutePass(char &StandardID, char &TargetID);
 
-  /// Allow the target to disable a specific standard pass.
+  /// Allow the target to enable a specific standard pass by default.
+  void enablePass(char &ID) { substitutePass(ID, ID); }
+
+  /// Allow the target to disable a specific standard pass by default.
   void disablePass(char &ID) { substitutePass(ID, NoPassID); }
 
   /// Return the pass ssubtituted for StandardID by the target.