Update LLVM

Upstream LLVM has changed slightly such that our PassWrapper.cpp no longer
comiles (travis errors). This updates the bundled LLVM to the latest nightly
which will hopefully fix the travis errors we're seeing.
This commit is contained in:
Alex Crichton 2014-02-25 09:26:11 -08:00
parent 34a224f4a1
commit 294b27d806
3 changed files with 4 additions and 4 deletions

View file

@ -166,7 +166,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target,
PassManager *PM = unwrap<PassManager>(PMR);
std::string ErrorInfo;
raw_fd_ostream OS(path, ErrorInfo, sys::fs::F_Binary);
raw_fd_ostream OS(path, ErrorInfo, sys::fs::F_None);
if (ErrorInfo != "") {
LLVMRustError = ErrorInfo.c_str();
return false;
@ -184,7 +184,7 @@ LLVMRustPrintModule(LLVMPassManagerRef PMR,
const char* path) {
PassManager *PM = unwrap<PassManager>(PMR);
std::string ErrorInfo;
raw_fd_ostream OS(path, ErrorInfo, sys::fs::F_Binary);
raw_fd_ostream OS(path, ErrorInfo, sys::fs::F_None);
formatted_raw_ostream FOS(OS);
PM->add(createPrintModulePass(FOS));
PM->run(*unwrap(M));