mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-08 17:11:33 +00:00
Update for LLVM api change.
llvm-svn: 202054
This commit is contained in:
parent
4fbd373815
commit
f27f9fa136
@ -446,7 +446,7 @@ static bool createManifestResourceFile(PECOFFLinkingContext &ctx,
|
||||
// Open the temporary file for writing.
|
||||
std::string errorInfo;
|
||||
llvm::raw_fd_ostream out(rcFileSmallString.c_str(), errorInfo,
|
||||
llvm::sys::fs::F_None);
|
||||
llvm::sys::fs::F_Text);
|
||||
if (!errorInfo.empty()) {
|
||||
diagnostics << "Failed to open " << ctx.getManifestOutputPath() << ": "
|
||||
<< errorInfo << "\n";
|
||||
@ -505,7 +505,7 @@ static bool createSideBySideManifestFile(PECOFFLinkingContext &ctx,
|
||||
raw_ostream &diagnostics) {
|
||||
std::string errorInfo;
|
||||
llvm::raw_fd_ostream out(ctx.getManifestOutputPath().data(), errorInfo,
|
||||
llvm::sys::fs::F_None);
|
||||
llvm::sys::fs::F_Text);
|
||||
if (!errorInfo.empty()) {
|
||||
diagnostics << "Failed to open " << ctx.getManifestOutputPath() << ": "
|
||||
<< errorInfo << "\n";
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
|
||||
std::string errorInfo;
|
||||
llvm::raw_fd_ostream out(outPath.data(), errorInfo,
|
||||
llvm::sys::fs::F_Binary);
|
||||
llvm::sys::fs::F_None);
|
||||
if (!errorInfo.empty())
|
||||
return error_code::success(); // FIXME
|
||||
|
||||
|
@ -1193,7 +1193,7 @@ public:
|
||||
virtual error_code writeFile(const lld::File &file, StringRef outPath) {
|
||||
// Create stream to path.
|
||||
std::string errorInfo;
|
||||
llvm::raw_fd_ostream out(outPath.data(), errorInfo, llvm::sys::fs::F_None);
|
||||
llvm::raw_fd_ostream out(outPath.data(), errorInfo, llvm::sys::fs::F_Text);
|
||||
if (!errorInfo.empty())
|
||||
return llvm::make_error_code(llvm::errc::no_such_file_or_directory);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user