diff options
Diffstat (limited to 'tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | tools/llvm-ld/llvm-ld.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index 17035e2a31..f789b15d3a 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/tools/llvm-ld/llvm-ld.cpp @@ -229,8 +229,8 @@ void GenerateBitcode(Module* M, const std::string& FileName) { // Create the output file. std::string ErrorInfo; - raw_fd_ostream Out(FileName.c_str(), /*Binary=*/true, /*Force=*/true, - ErrorInfo); + raw_fd_ostream Out(FileName.c_str(), ErrorInfo, + raw_fd_ostream::F_Force | raw_fd_ostream::F_Binary); if (!ErrorInfo.empty()) PrintAndExit(ErrorInfo); @@ -427,8 +427,8 @@ static void EmitShellScript(char **argv) { // Output the script to start the program... std::string ErrorInfo; - raw_fd_ostream Out2(OutputFilename.c_str(), /*Binary=*/false, /*Force=*/true, - ErrorInfo); + raw_fd_ostream Out2(OutputFilename.c_str(), ErrorInfo, + llvm::raw_fd_ostream::F_Force); if (!ErrorInfo.empty()) PrintAndExit(ErrorInfo); |