diff options
| author | Matthias Braun <matze@braunis.de> | 2016-07-16 02:24:59 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2016-07-16 02:24:59 +0000 |
| commit | 538859cca3518a981293cf773e490fcf29a153c2 (patch) | |
| tree | 6eb922449d7884b9d620e5e464edc493ea3f6bd7 /llvm/tools | |
| parent | c0d2a617f7654c1842f121ebad6345bbea8e121a (diff) | |
| download | bcm5719-llvm-538859cca3518a981293cf773e490fcf29a153c2.tar.gz bcm5719-llvm-538859cca3518a981293cf773e490fcf29a153c2.zip | |
llc: Add support for -run-pass none
This does not schedule any passes besides the ones necessary to
construct and print the machine function. This is useful to test .mir
file reading and printing.
Differential Revision: http://reviews.llvm.org/D22432
llvm-svn: 275664
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llc/llc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index 5fd10fd56bc..9b6086ad4ea 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/tools/llc/llc.cpp @@ -269,6 +269,9 @@ int main(int argc, char **argv) { static bool addPass(PassManagerBase &PM, const char *argv0, StringRef PassName, TargetPassConfig &TPC) { + if (PassName == "none") + return false; + const PassRegistry *PR = PassRegistry::getPassRegistry(); const PassInfo *PI = PR->getPassInfo(PassName); if (!PI) { |

