Upgrade to LLVM-2.9. Thanks to David Nadlinger for the patch.

This commit is contained in:
Kelly Wilson
2011-04-19 21:57:15 -06:00
parent 3bfc0a04d8
commit b26b0f4196
15 changed files with 221 additions and 250 deletions

View File

@@ -16,7 +16,7 @@
#include "llvm/Module.h"
#include "llvm/PassManager.h"
#include "llvm/LinkAllPasses.h"
#include "llvm/System/Program.h"
#include "llvm/Support/Program.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FormattedStream.h"
@@ -200,7 +200,7 @@ void writeModule(llvm::Module* m, std::string filename)
LOG_SCOPE;
if (llvm::verifyModule(*m,llvm::ReturnStatusAction,&verifyErr))
{
//error("%s", verifyErr.c_str());
error("%s", verifyErr.c_str());
fatal();
}
else {