[AsmPrinter] Allow emitting codeview for any windows target
authorMartin Storsjo <martin@martin.st>
Tue, 8 May 2018 20:56:04 +0000 (20:56 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 8 May 2018 20:56:04 +0000 (20:56 +0000)
commit966d34563f39839c176255b8e034c4b91627e449
treeb70f936578d92df93c82c3e4896d71ffa87ae245
parent818bd56809be068978762b2e9c104f7d86acd303
[AsmPrinter] Allow emitting codeview for any windows target

Before SVN r244158, codeview debug info was emitted always
emitted for msvc if debug info was enabled, but that commit
added a module flag.

Since it's still restricted by the flag, we can allow it
for any target if the user requests it, not only msvc (and
windows-itanium, added in SVN r287567).

Add a test for emitting it for a mingw target.

Differential Revision: https://reviews.llvm.org/D46303

llvm-svn: 331809
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/DebugInfo/COFF/simple.ll