diff options
author | Andrew Trick <atrick@apple.com> | 2012-03-09 00:52:17 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-03-09 00:52:17 +0000 |
commit | a6fe207fab07d709ca8986a128836438613aedf7 (patch) | |
tree | 8eacb0175837de551ba608d968d648574e11f4b2 | |
parent | eb55ad4ad7c0b1397c6d05232e1ad56f4c43f5b0 (diff) | |
download | bcm5719-llvm-a6fe207fab07d709ca8986a128836438613aedf7.tar.gz bcm5719-llvm-a6fe207fab07d709ca8986a128836438613aedf7.zip |
Added TargetPassConfig::enablePass
llvm-svn: 152359
-rw-r--r-- | llvm/include/llvm/CodeGen/Passes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/Passes.h b/llvm/include/llvm/CodeGen/Passes.h index 8ce339da634..19a1acbb70a 100644 --- a/llvm/include/llvm/CodeGen/Passes.h +++ b/llvm/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. |