about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-25 09:26:11 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-25 09:37:30 -0800
commit294b27d80686fe2a698c166f223cfee216db3332 (patch)
treed19ac1368289c50984d79ab21c5f6c55cff989c4 /src/rustllvm/PassWrapper.cpp
parent34a224f4a1144c99cedbff9c0493d57037739d35 (diff)
downloadrust-294b27d80686fe2a698c166f223cfee216db3332.tar.gz
rust-294b27d80686fe2a698c166f223cfee216db3332.zip
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.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
-rw-r--r--src/rustllvm/PassWrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp
index 08c17093d2a..c1655b3a415 100644
--- a/src/rustllvm/PassWrapper.cpp
+++ b/src/rustllvm/PassWrapper.cpp
@@ -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));