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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user