diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-13 17:24:34 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-13 17:24:34 +0000 |
commit | ab835430b4f758dd49903251c7c7f21b95933c89 (patch) | |
tree | cb6413fad119b65bbd552978d8330b0b64f166e6 /lib/Driver/Driver.cpp | |
parent | b269c32596dadf9f653cfffae6981d27e6eebc2e (diff) |
Driver: Return 0 from BuildCompilation on -ccc-print-phases,
-ccc-print-options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index d09aa18d22..fcfa9adca4 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -152,7 +152,7 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) { // FIXME: This behavior shouldn't be here. if (CCCPrintOptions) { PrintOptions(*Args); - exit(0); + return 0; } if (!HandleImmediateArgs(*Args)) @@ -166,12 +166,12 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) { else BuildActions(*Args, Actions); - // FIXME: This behavior shouldn't be here. if (CCCPrintActions) { PrintActions(*Args, Actions); - exit(0); + return 0; } - + + assert(0 && "FIXME: Implement"); return new Compilation(); |