Skip to content

Commit

Permalink
auto merge of #12548 : alexcrichton/rust/up-llvm, r=huonw,brson
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Feb 26, 2014
2 parents 3b09469 + 294b27d commit 2e1cfae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/llvm
Submodule llvm updated 724 files
4 changes: 2 additions & 2 deletions src/rustllvm/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/rustllvm/llvm-auto-clean-trigger
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
# The actual contents of this file do not matter, but to trigger a change on the
# build bots then the contents should be changed so git updates the mtime.
2014-02-11
2014-02-25

0 comments on commit 2e1cfae

Please sign in to comment.