summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-05-08 20:56:04 +0000
committerMartin Storsjo <martin@martin.st>2018-05-08 20:56:04 +0000
commit966d34563f39839c176255b8e034c4b91627e449 (patch)
treeb70f936578d92df93c82c3e4896d71ffa87ae245 /llvm/lib/CodeGen/AsmPrinter
parent818bd56809be068978762b2e9c104f7d86acd303 (diff)
downloadbcm5719-llvm-966d34563f39839c176255b8e034c4b91627e449.tar.gz
bcm5719-llvm-966d34563f39839c176255b8e034c4b91627e449.zip
[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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index a55f7c26a21..411b11f40f5 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -295,8 +295,7 @@ bool AsmPrinter::doInitialization(Module &M) {
if (MAI->doesSupportDebugInformation()) {
bool EmitCodeView = MMI->getModule()->getCodeViewFlag();
- if (EmitCodeView && (TM.getTargetTriple().isKnownWindowsMSVCEnvironment() ||
- TM.getTargetTriple().isWindowsItaniumEnvironment())) {
+ if (EmitCodeView && TM.getTargetTriple().isOSWindows()) {
Handlers.push_back(HandlerInfo(new CodeViewDebug(this),
DbgTimerName, DbgTimerDescription,
CodeViewLineTablesGroupName,
OpenPOWER on IntegriCloud