summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-03-09 00:52:17 +0000
committerAndrew Trick <atrick@apple.com>2012-03-09 00:52:17 +0000
commita6fe207fab07d709ca8986a128836438613aedf7 (patch)
tree8eacb0175837de551ba608d968d648574e11f4b2
parenteb55ad4ad7c0b1397c6d05232e1ad56f4c43f5b0 (diff)
downloadbcm5719-llvm-a6fe207fab07d709ca8986a128836438613aedf7.tar.gz
bcm5719-llvm-a6fe207fab07d709ca8986a128836438613aedf7.zip
Added TargetPassConfig::enablePass
llvm-svn: 152359
-rw-r--r--llvm/include/llvm/CodeGen/Passes.h5
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.
OpenPOWER on IntegriCloud