Add a wrapper for open.
[oota-llvm.git] / lib / Bitcode / Writer / BitWriter.cpp
index 985208c40fdbf4a8c65cadbcbc7222375be53266..cd1ada22cfd6cffa4874c1440394b874d10ece63 100644 (file)
@@ -18,7 +18,7 @@ using namespace llvm;
 
 int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) {
   std::string ErrorInfo;
-  raw_fd_ostream OS(Path, ErrorInfo, raw_fd_ostream::F_Binary);
+  raw_fd_ostream OS(Path, ErrorInfo, sys::fs::F_Binary);
 
   if (!ErrorInfo.empty())
     return -1;