diff options
author | Jameson Nash <vtjnash@gmail.com> | 2020-10-15 17:19:10 -0400 |
---|---|---|
committer | Jameson Nash <vtjnash@gmail.com> | 2020-10-16 16:27:31 -0400 |
commit | ac2def2d8d8c9aa6f96f0c869a5b988ae602385a (patch) | |
tree | 9afe04631f70dce22f7a554570545b799aab76db /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 7e801ca0efa99f7cec7a2aea30513ad282030b51 (diff) | |
download | llvm-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.cpp | 4 |
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; } |