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:
parent
34a224f4a1
commit
294b27d806
3 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue