aboutsummaryrefslogtreecommitdiffstats
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
commitf91a330329aecec00a322ccf4b0438ffbd620574 (patch)
tree4f2c919c362839887a05d94ac608729524853dd4
parent9ad62b3c09e03368246753c1052674eaf9b0d161 (diff)
downloadexternal_llvm-f91a330329aecec00a322ccf4b0438ffbd620574.zip
external_llvm-f91a330329aecec00a322ccf4b0438ffbd620574.tar.gz
external_llvm-f91a330329aecec00a322ccf4b0438ffbd620574.tar.bz2
Added TargetPassConfig::enablePass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152359 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/Passes.h5
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.