File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ static bool isKernel(SPIRVFunction *BF) {
117
117
118
118
static void dumpLLVM (Module *M, const std::string &FName) {
119
119
std::error_code EC;
120
- raw_fd_ostream FS (FName, EC, sys::fs::F_None );
120
+ raw_fd_ostream FS (FName, EC, sys::fs::OF_None );
121
121
if (!EC) {
122
122
FS << *M;
123
123
FS.close ();
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ Value *removeCast(Value *V) {
100
100
101
101
void saveLLVMModule (Module *M, const std::string &OutputFile) {
102
102
std::error_code EC;
103
- ToolOutputFile Out (OutputFile.c_str (), EC, sys::fs::F_None );
103
+ ToolOutputFile Out (OutputFile.c_str (), EC, sys::fs::OF_None );
104
104
if (EC) {
105
105
SPIRVDBG (errs () << " Fails to open output file: " << EC.message ();)
106
106
return ;
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ static int convertSPIRVToLLVM(const SPIRV::TranslatorOpts &Opts) {
287
287
}
288
288
289
289
std::error_code EC;
290
- ToolOutputFile Out (OutputFile.c_str (), EC, sys::fs::F_None );
290
+ ToolOutputFile Out (OutputFile.c_str (), EC, sys::fs::OF_None );
291
291
if (EC) {
292
292
errs () << " Fails to open output file: " << EC.message ();
293
293
return -1 ;
@@ -364,7 +364,7 @@ static int regularizeLLVM(SPIRV::TranslatorOpts &Opts) {
364
364
}
365
365
366
366
std::error_code EC;
367
- ToolOutputFile Out (OutputFile.c_str (), EC, sys::fs::F_None );
367
+ ToolOutputFile Out (OutputFile.c_str (), EC, sys::fs::OF_None );
368
368
if (EC) {
369
369
errs () << " Fails to open output file: " << EC.message ();
370
370
return -1 ;
You can’t perform that action at this time.
0 commit comments