summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index d09aa18d225..fcfa9adca4a 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud