diff options
-rw-r--r-- | include/llvm/CodeGen/Passes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index 8ce339d..19a1acb 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -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. |