[Windows] Turn off text mode correctly in Rewriter to stop CRLF translation
authorAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>
Tue, 6 Apr 2021 14:48:40 +0000 (10:48 -0400)
committerAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>
Tue, 6 Apr 2021 14:49:09 +0000 (10:49 -0400)
commit23929af383f27a6ddf23704192a25591481152b3
treea12d027460f22e8ee74e66f48bed6e9d17823e96
parentfb6a5237aa73e42d476f3736afcd531a593d3c33
[Windows] Turn off text mode correctly in Rewriter to stop CRLF translation

I incorrectly changed the RewriteTestAction::ExecuteAction's file to binary instead of the proper RewriteIncludesAction::BeginSourceFileAction in https://reviews.llvm.org/rGbc5d4bcc2deb71ab647270c9754a83484b3d6f87. In the original commit, I actually changed RewriteIncludesAction::BeginSourceFileAction in https://reviews.llvm.org/rGfdb640ea30d416368b76b68b106deda580c6aced. This should fix the issue @aganea is facing.

Reviewed By: aganea

Differential Revision: https://reviews.llvm.org/D99837
clang/lib/Frontend/Rewrite/FrontendActions.cpp