changeset 1172:b3887714b735

Small cleanup: remove mars.h #include
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 29 Mar 2009 16:47:19 +0200
parents 461a85f0db31
children b0f9652f31de
files gen/optimizer.cpp
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gen/optimizer.cpp	Sun Mar 29 15:51:14 2009 +0200
+++ b/gen/optimizer.cpp	Sun Mar 29 16:47:19 2009 +0200
@@ -7,8 +7,7 @@
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/PassNameParser.h"
 
-#include "root.h"       // error() & fatal()
-#include "mars.h"       // global flags
+#include "root.h"       // error()
 
 using namespace llvm;
 
@@ -152,7 +151,7 @@
                 error("Can't create pass '-%s' (%s)", arg, pass->getPassName());
             else
                 error("Can't create pass (%s)", pass->getPassName());
-            fatal();
+            assert(0);  // Should be unreachable; root.h:error() calls exit()
         }
     }
     // insert -O<N> / -enable-inlining if specified at the end,