diff options
author | Shoaib Meenai <smeenai@fb.com> | 2016-11-21 20:13:32 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2016-11-21 20:13:32 +0000 |
commit | 106e05a0e8723b7f87a73fcd03b50973593bc04c (patch) | |
tree | ef253dd1b2070f3aecdac75c05cb1233a75e52ad /llvm/lib | |
parent | a8fb73fc0be2dcd6609163e1d8e61df861f43f06 (diff) | |
download | bcm5719-llvm-106e05a0e8723b7f87a73fcd03b50973593bc04c.tar.gz bcm5719-llvm-106e05a0e8723b7f87a73fcd03b50973593bc04c.zip |
[AsmPrinter] Enable codeview for windows-itanium
Enable codeview emission for windows-itanium targets. Co-opt an existing
test (which is derived from a C source file and should therefore be
identical across the Itanium and MS ABIs).
Differential Revision: https://reviews.llvm.org/D26693
llvm-svn: 287567
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 16542f54cf1..6b52e97a02c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -247,7 +247,8 @@ bool AsmPrinter::doInitialization(Module &M) { if (MAI->doesSupportDebugInformation()) { bool EmitCodeView = MMI->getModule()->getCodeViewFlag(); - if (EmitCodeView && TM.getTargetTriple().isKnownWindowsMSVCEnvironment()) { + if (EmitCodeView && (TM.getTargetTriple().isKnownWindowsMSVCEnvironment() || + TM.getTargetTriple().isWindowsItaniumEnvironment())) { Handlers.push_back(HandlerInfo(new CodeViewDebug(this), DbgTimerName, DbgTimerDescription, CodeViewLineTablesGroupName, |