comparison gen/toobj.c @ 14:0e86428ee567 trunk

[svn r18] * Initial support for switch statements - No string switches yet. * Moved Statement::toIR definitions into gen/statements.c - toir.c is still too big. * Removed some BB bloat with ScopeStatements.
author lindquist
date Wed, 03 Oct 2007 02:15:12 +0200
parents d3ee9efe20e2
children 37a4fdab33fc
comparison
equal deleted inserted replaced
13:3d1d98329fa7 14:0e86428ee567
83 // emit the llvm main function if necessary 83 // emit the llvm main function if necessary
84 if (ir.emitMain) { 84 if (ir.emitMain) {
85 LLVM_DtoMain(); 85 LLVM_DtoMain();
86 } 86 }
87 87
88 /*
88 // verify the llvm 89 // verify the llvm
89 std::string verifyErr; 90 std::string verifyErr;
90 Logger::println("Verifying module..."); 91 Logger::println("Verifying module...");
91 if (llvm::verifyModule(*ir.module,llvm::ReturnStatusAction,&verifyErr)) 92 if (llvm::verifyModule(*ir.module,llvm::ReturnStatusAction,&verifyErr))
92 { 93 {
93 error("%s", verifyErr.c_str()); 94 error("%s", verifyErr.c_str());
94 fatal(); 95 fatal();
95 } 96 }
96 else 97 else
97 Logger::println("Verification passed!"); 98 Logger::println("Verification passed!");
99 */
98 100
99 // run passes 101 // run passes
100 // TODO 102 // TODO
101 103
102 /*if (global.params.llvmLL) { 104 /*if (global.params.llvmLL) {