[SystemZ][z/OS] Set text flag correctly for llvm-reduce tool
This patch sets the text flag correctly for llvm-reduce files Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D138304
This commit is contained in:
parent
841a0edd03
commit
625f08da73
@ -97,7 +97,9 @@ void writeBitcode(ReducerWorkItem &M, raw_ostream &OutStream) {
|
||||
|
||||
void TestRunner::writeOutput(StringRef Message) {
|
||||
std::error_code EC;
|
||||
raw_fd_ostream Out(OutputFilename, EC);
|
||||
raw_fd_ostream Out(OutputFilename, EC,
|
||||
EmitBitcode && !Program->isMIR() ? sys::fs::OF_None
|
||||
: sys::fs::OF_Text);
|
||||
if (EC) {
|
||||
errs() << "Error opening output file: " << EC.message() << "!\n";
|
||||
exit(1);
|
||||
|
||||
@ -74,7 +74,8 @@ bool isReduced(ReducerWorkItem &M, TestRunner &Test) {
|
||||
int FD;
|
||||
std::error_code EC = sys::fs::createTemporaryFile(
|
||||
"llvm-reduce", M.isMIR() ? "mir" : (UseBitcode ? "bc" : "ll"), FD,
|
||||
CurrentFilepath);
|
||||
CurrentFilepath,
|
||||
UseBitcode && !M.isMIR() ? sys::fs::OF_None : sys::fs::OF_Text);
|
||||
if (EC) {
|
||||
errs() << "Error making unique filename: " << EC.message() << "!\n";
|
||||
exit(1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user