diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-24 15:07:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-24 15:07:20 +0000 |
commit | 7dbcdd08c29dfecd0d5b9bd89afd60d8f7e3de29 (patch) | |
tree | 82c7d9be1d91d0ecad41ae27a18afd69d152b2c2 /llvm/lib | |
parent | 7860107c7dbe338508f4433f986769a48b8431a8 (diff) | |
download | bcm5719-llvm-7dbcdd08c29dfecd0d5b9bd89afd60d8f7e3de29.tar.gz bcm5719-llvm-7dbcdd08c29dfecd0d5b9bd89afd60d8f7e3de29.zip |
Don't make F_None the default.
This will make it easier to switch the default to being binary files.
llvm-svn: 202042
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/CFGPrinter.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/RegAllocPBQP.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/IR/Core.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/IR/GCOV.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/TableGen/Main.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/DebugIR.cpp | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/CFGPrinter.cpp b/llvm/lib/Analysis/CFGPrinter.cpp index 9b6879a42ed..3c67618450c 100644 --- a/llvm/lib/Analysis/CFGPrinter.cpp +++ b/llvm/lib/Analysis/CFGPrinter.cpp @@ -80,7 +80,7 @@ namespace { errs() << "Writing '" << Filename << "'..."; std::string ErrorInfo; - raw_fd_ostream File(Filename.c_str(), ErrorInfo); + raw_fd_ostream File(Filename.c_str(), ErrorInfo, sys::fs::F_None); if (ErrorInfo.empty()) WriteGraph(File, (const Function*)&F); @@ -114,7 +114,7 @@ namespace { errs() << "Writing '" << Filename << "'..."; std::string ErrorInfo; - raw_fd_ostream File(Filename.c_str(), ErrorInfo); + raw_fd_ostream File(Filename.c_str(), ErrorInfo, sys::fs::F_None); if (ErrorInfo.empty()) WriteGraph(File, (const Function*)&F, true); diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp index 483f2e1ae86..56fdb45f4e0 100644 --- a/llvm/lib/CodeGen/RegAllocPBQP.cpp +++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp @@ -595,7 +595,7 @@ bool RegAllocPBQP::runOnMachineFunction(MachineFunction &MF) { rs << round; std::string graphFileName(fqn + "." + rs.str() + ".pbqpgraph"); std::string tmp; - raw_fd_ostream os(graphFileName.c_str(), tmp); + raw_fd_ostream os(graphFileName.c_str(), tmp, sys::fs::F_None); DEBUG(dbgs() << "Dumping graph for round " << round << " to \"" << graphFileName << "\"\n"); problem->getGraph().dump(os); diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index 3a6a0b0b447..dbaf02edf6c 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/lib/IR/Core.cpp @@ -130,7 +130,7 @@ void LLVMDumpModule(LLVMModuleRef M) { LLVMBool LLVMPrintModuleToFile(LLVMModuleRef M, const char *Filename, char **ErrorMessage) { std::string error; - raw_fd_ostream dest(Filename, error); + raw_fd_ostream dest(Filename, error, sys::fs::F_None); if (!error.empty()) { *ErrorMessage = strdup(error.c_str()); return true; diff --git a/llvm/lib/IR/GCOV.cpp b/llvm/lib/IR/GCOV.cpp index 01759ca96bd..3311d2ef42e 100644 --- a/llvm/lib/IR/GCOV.cpp +++ b/llvm/lib/IR/GCOV.cpp @@ -482,7 +482,7 @@ void FileInfo::print(StringRef GCNOFile, StringRef GCDAFile) { std::string CoveragePath = mangleCoveragePath(Filename, Options.PreservePaths); std::string ErrorInfo; - raw_fd_ostream OS(CoveragePath.c_str(), ErrorInfo); + raw_fd_ostream OS(CoveragePath.c_str(), ErrorInfo, sys::fs::F_None); if (!ErrorInfo.empty()) errs() << ErrorInfo << "\n"; diff --git a/llvm/lib/TableGen/Main.cpp b/llvm/lib/TableGen/Main.cpp index 7fe47bcb7e4..cf0d88b513e 100644 --- a/llvm/lib/TableGen/Main.cpp +++ b/llvm/lib/TableGen/Main.cpp @@ -57,7 +57,7 @@ static int createDependencyFile(const TGParser &Parser, const char *argv0) { return 1; } std::string Error; - tool_output_file DepOut(DependFilename.c_str(), Error); + tool_output_file DepOut(DependFilename.c_str(), Error, sys::fs::F_None); if (!Error.empty()) { errs() << argv0 << ": error opening " << DependFilename << ":" << Error << "\n"; @@ -103,7 +103,7 @@ int TableGenMain(char *argv0, TableGenMainFn *MainFn) { return 1; std::string Error; - tool_output_file Out(OutputFilename.c_str(), Error); + tool_output_file Out(OutputFilename.c_str(), Error, sys::fs::F_None); if (!Error.empty()) { errs() << argv0 << ": error opening " << OutputFilename << ":" << Error << "\n"; diff --git a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp index 9ad6c472b9b..1100689fb7e 100644 --- a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp +++ b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp @@ -528,7 +528,7 @@ void DebugIR::writeDebugBitcode(const Module *M, int *fd) { if (!fd) { std::string Path = getPath(); - Out.reset(new raw_fd_ostream(Path.c_str(), error)); + Out.reset(new raw_fd_ostream(Path.c_str(), error, sys::fs::F_None)); DEBUG(dbgs() << "WRITING debug bitcode from Module " << M << " to file " << Path << "\n"); } else { |