diff options
| author | Reid Kleckner <rnk@google.com> | 2018-12-26 21:04:08 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2018-12-26 21:04:08 +0000 |
| commit | a643e6449ba284e345ddd35479b8c4f897eed386 (patch) | |
| tree | 159360d2f509c32a54e5ad81435c65bf51cc516f /llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | |
| parent | 3ab5a9cd1c826b627d6bcc775df824f637dd9e17 (diff) | |
| download | bcm5719-llvm-a643e6449ba284e345ddd35479b8c4f897eed386.tar.gz bcm5719-llvm-a643e6449ba284e345ddd35479b8c4f897eed386.zip | |
[clang-cl] Treat inputs as C++ with /E, like MSVC
midl invokes the compiler on .idl files with /E. Before this change, we
would treat unrecognized inputs as object files. Now we pre-process to
stdout as expected. I checked that MSVC defines __cplusplus when invoked
this way, so treating the input as C++ seems like the right thing to do.
After this change, I was able to run midl like this with clang-cl:
$ midl -cpp_cmd clang-cl.exe foo.idl
Things worked for the example IDL file in the Microsoft documentation,
but beyond that, I don't know if this will work well.
Fixes PR40140
llvm-svn: 350072
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp')
0 files changed, 0 insertions, 0 deletions

