aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.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/MachineModuleInfo.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/MachineModuleInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index be08f0a..ecae496 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -304,7 +304,7 @@ char MachineModuleInfoWrapperPass::ID = 0;
bool MachineModuleInfoWrapperPass::doInitialization(Module &M) {
MMI.initialize();
MMI.TheModule = &M;
- MMI.DbgInfoAvailable = !M.debug_compile_units().empty();
+ MMI.DbgInfoAvailable = false;
return false;
}
@@ -319,6 +319,6 @@ MachineModuleInfo MachineModuleAnalysis::run(Module &M,
ModuleAnalysisManager &) {
MachineModuleInfo MMI(TM);
MMI.TheModule = &M;
- MMI.DbgInfoAvailable = !M.debug_compile_units().empty();
+ MMI.DbgInfoAvailable = false;
return MMI;
}