diff options
| author | Reid Kleckner <rnk@google.com> | 2019-09-11 22:33:50 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2019-09-11 22:33:50 +0000 |
| commit | e78a7a0ecddc747129512fabf4836e22d1805f00 (patch) | |
| tree | 5e703a6d35f08efb47111b30112006cedd571ef0 /llvm/lib/TableGen/Main.cpp | |
| parent | 2bfb955c51fd062a0a45fe25858a00e28217d7ed (diff) | |
| download | bcm5719-llvm-e78a7a0ecddc747129512fabf4836e22d1805f00.tar.gz bcm5719-llvm-e78a7a0ecddc747129512fabf4836e22d1805f00.zip | |
[TableGen] Skip CRLF conversion when writing output
Doing the CRLF translation while writing the file defeats our
optimization to not update the file if it hasn't changed.
Fixes PR43271.
llvm-svn: 371683
Diffstat (limited to 'llvm/lib/TableGen/Main.cpp')
| -rw-r--r-- | llvm/lib/TableGen/Main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/TableGen/Main.cpp b/llvm/lib/TableGen/Main.cpp index f51267f7ce4..34195c31a8b 100644 --- a/llvm/lib/TableGen/Main.cpp +++ b/llvm/lib/TableGen/Main.cpp @@ -64,7 +64,7 @@ static int createDependencyFile(const TGParser &Parser, const char *argv0) { return reportError(argv0, "the option -d must be used together with -o\n"); std::error_code EC; - ToolOutputFile DepOut(DependFilename, EC, sys::fs::OF_Text); + ToolOutputFile DepOut(DependFilename, EC, sys::fs::OF_None); if (EC) return reportError(argv0, "error opening " + DependFilename + ":" + EC.message() + "\n"); @@ -122,7 +122,7 @@ int llvm::TableGenMain(char *argv0, TableGenMainFn *MainFn) { return 0; std::error_code EC; - ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_Text); + ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_None); if (EC) return reportError(argv0, "error opening " + OutputFilename + ":" + EC.message() + "\n"); |

