Index: src/CodeGen/CodeGenerator.cc
===================================================================
--- src/CodeGen/CodeGenerator.cc	(revision 7c782aff4b836a71e18dd75c37d3b3e43582a5bc)
+++ src/CodeGen/CodeGenerator.cc	(revision a16764a6fbfe44300fc8834400a31c89befda091)
@@ -18,5 +18,4 @@
 #include <list>                      // for _List_iterator, list, list<>::it...
 
-#include "Common/SemanticError.h"    // for SemanticError
 #include "Common/UniqueName.h"       // for UniqueName
 #include "Common/utility.h"          // for CodeLocation, toString
Index: src/CodeGen/FixMain.cc
===================================================================
--- src/CodeGen/FixMain.cc	(revision 7c782aff4b836a71e18dd75c37d3b3e43582a5bc)
+++ src/CodeGen/FixMain.cc	(revision a16764a6fbfe44300fc8834400a31c89befda091)
@@ -39,5 +39,5 @@
 	{
 		if(main_signature) {
-			throw SemanticError(functionDecl, "Multiple definition of main routine\n");
+			SemanticError(functionDecl, "Multiple definition of main routine\n");
 		}
 		main_signature.reset( functionDecl->clone() );
Index: src/CodeGen/FixNames.cc
===================================================================
--- src/CodeGen/FixNames.cc	(revision 7c782aff4b836a71e18dd75c37d3b3e43582a5bc)
+++ src/CodeGen/FixNames.cc	(revision a16764a6fbfe44300fc8834400a31c89befda091)
@@ -118,5 +118,5 @@
 			int nargs = functionDecl->get_functionType()->get_parameters().size();
 			if( !(nargs == 0 || nargs == 2 || nargs == 3) ) {
-				throw SemanticError(functionDecl, "Main expected to have 0, 2 or 3 arguments\n");
+				SemanticError(functionDecl, "Main expected to have 0, 2 or 3 arguments\n");
 			}
 			functionDecl->get_statements()->get_kids().push_back( new ReturnStmt( new ConstantExpr( Constant::from_int( 0 ) ) ) );
