|
@@ -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";
|