summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp')
-rw-r--r--clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
index 0c628963a29..2a31f673a07 100644
--- a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
+++ b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
@@ -559,7 +559,7 @@ public:
// Write the bitcode contents to the temporary file.
{
std::error_code EC;
- raw_fd_ostream BitcodeFile(BitcodeFileName, EC, sys::fs::F_None);
+ raw_fd_ostream BitcodeFile(BitcodeFileName, EC, sys::fs::OF_None);
if (EC) {
errs() << "error: unable to open temporary file.\n";
return true;
@@ -764,7 +764,7 @@ static bool BundleFiles() {
std::error_code EC;
// Create output file.
- raw_fd_ostream OutputFile(OutputFileNames.front(), EC, sys::fs::F_None);
+ raw_fd_ostream OutputFile(OutputFileNames.front(), EC, sys::fs::OF_None);
if (EC) {
errs() << "error: Can't open file " << OutputFileNames.front() << ".\n";
@@ -862,7 +862,7 @@ static bool UnbundleFiles() {
// Check if the output file can be opened and copy the bundle to it.
std::error_code EC;
- raw_fd_ostream OutputFile(Output->second, EC, sys::fs::F_None);
+ raw_fd_ostream OutputFile(Output->second, EC, sys::fs::OF_None);
if (EC) {
errs() << "error: Can't open file " << Output->second << ": "
<< EC.message() << "\n";
@@ -882,7 +882,7 @@ static bool UnbundleFiles() {
if (Worklist.size() == TargetNames.size()) {
for (auto &E : Worklist) {
std::error_code EC;
- raw_fd_ostream OutputFile(E.second, EC, sys::fs::F_None);
+ raw_fd_ostream OutputFile(E.second, EC, sys::fs::OF_None);
if (EC) {
errs() << "error: Can't open file " << E.second << ": " << EC.message()
<< "\n";
@@ -905,7 +905,7 @@ static bool UnbundleFiles() {
// If we still have any elements in the worklist, create empty files for them.
for (auto &E : Worklist) {
std::error_code EC;
- raw_fd_ostream OutputFile(E.second, EC, sys::fs::F_None);
+ raw_fd_ostream OutputFile(E.second, EC, sys::fs::OF_None);
if (EC) {
errs() << "error: Can't open file " << E.second << ": " << EC.message()
<< "\n";
OpenPOWER on IntegriCloud