aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorJameson Nash <vtjnash@gmail.com>2020-10-15 17:19:10 -0400
committerJameson Nash <vtjnash@gmail.com>2020-10-16 16:27:31 -0400
commitac2def2d8d8c9aa6f96f0c869a5b988ae602385a (patch)
tree9afe04631f70dce22f7a554570545b799aab76db /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent7e801ca0efa99f7cec7a2aea30513ad282030b51 (diff)
downloadllvm-ac2def2d8d8c9aa6f96f0c869a5b988ae602385a.zip
llvm-ac2def2d8d8c9aa6f96f0c869a5b988ae602385a.tar.gz
llvm-ac2def2d8d8c9aa6f96f0c869a5b988ae602385a.tar.bz2
make the AsmPrinterHandler array public
This lets external consumers customize the output, similar to how AssemblyAnnotationWriter lets the caller define callbacks when printing IR. The array of handlers already existed, this just cleans up the code so that it can be exposed publically. Differential Revision: https://reviews.llvm.org/D74158
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index bcace62..a24deb5 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -141,7 +141,6 @@ CodeViewDebug::CodeViewDebug(AsmPrinter *AP)
if (!MMI->getModule()->getNamedMetadata("llvm.dbg.cu") ||
!AP->getObjFileLowering().getCOFFDebugSymbolsSection()) {
Asm = nullptr;
- MMI->setDebugInfoAvailability(false);
return;
}
// Tell MMI that we have debug info.
@@ -564,8 +563,6 @@ void CodeViewDebug::endModule() {
if (!Asm || !MMI->hasDebugInfo())
return;
- assert(Asm != nullptr);
-
// The COFF .debug$S section consists of several subsections, each starting
// with a 4-byte control code (e.g. 0xF1, 0xF2, etc) and then a 4-byte length
// of the payload followed by the payload itself. The subsections are 4-byte