From 6135e4201ae675004f4987e1bf3a8deb16024f4e Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Sun, 29 Mar 2009 16:47:19 +0200 Subject: [PATCH] Small cleanup: remove mars.h #include --- gen/optimizer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gen/optimizer.cpp b/gen/optimizer.cpp index 7805e345..7abc8f6f 100644 --- a/gen/optimizer.cpp +++ b/gen/optimizer.cpp @@ -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 @@ bool ldc_optimize_module(llvm::Module* m) 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 / -enable-inlining if specified at the end,