Added TargetPassConfig::enablePass

llvm-svn: 152359
This commit is contained in:
Andrew Trick 2012-03-09 00:52:17 +00:00
parent eb55ad4ad7
commit a6fe207fab
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ public:
/// point where StadardID is expected, add TargetID in its place. /// point where StadardID is expected, add TargetID in its place.
void substitutePass(char &StandardID, char &TargetID); 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); } void disablePass(char &ID) { substitutePass(ID, NoPassID); }
/// Return the pass ssubtituted for StandardID by the target. /// Return the pass ssubtituted for StandardID by the target.