summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-05-20 19:35:35 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-05-20 19:35:35 +0000
commit5973bc8a82dc585b1f08190e4baba389a17a880f (patch)
treefb8a180f9b9d569b1e49c054ba792069d54bd37c /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent96c9ae6a20269a6dec5601f09c8ecf173a6f54ad (diff)
downloadbcm5719-llvm-5973bc8a82dc585b1f08190e4baba389a17a880f.tar.gz
bcm5719-llvm-5973bc8a82dc585b1f08190e4baba389a17a880f.zip
CodeGen: Move the call to DwarfDebug::beginModule() out of the constructor.
This gives AsmPrinter a chance to initialize its DD field before we call beginModule(), which is about to start using it. Differential Revision: http://reviews.llvm.org/D20413 llvm-svn: 270258
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index e9335054275..4b910b08f5d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -253,6 +253,7 @@ bool AsmPrinter::doInitialization(Module &M) {
}
if (!EmitCodeView || MMI->getModule()->getDwarfVersion()) {
DD = new DwarfDebug(this, &M);
+ DD->beginModule();
Handlers.push_back(HandlerInfo(DD, DbgTimerName, DWARFGroupName));
}
}
OpenPOWER on IntegriCloud