summaryrefslogtreecommitdiff
path: root/tools/llc/llc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llc/llc.cpp')
-rw-r--r--tools/llc/llc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index f8f0283191..3c4336addb 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -150,8 +150,8 @@ static tool_output_file *GetOutputStream(const char *TargetName,
// Open the file.
std::string error;
sys::fs::OpenFlags OpenFlags = sys::fs::F_None;
- if (Binary)
- OpenFlags |= sys::fs::F_Binary;
+ if (!Binary)
+ OpenFlags |= sys::fs::F_Text;
tool_output_file *FDOut = new tool_output_file(OutputFilename.c_str(), error,
OpenFlags);
if (!error.empty()) {