summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp1
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 0687fd899c0..e17dd527c5e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -3604,6 +3604,7 @@ public:
MMI = mmi;
shouldEmit = true;
+ MMI->setDebugInfoAvailability(true);
// Create DIEs for each of the externally visible global variables.
ConstructGlobalVariableDIEs();
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index f93f27c934d..5fe59d4e5a7 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -1630,6 +1630,7 @@ MachineModuleInfo::MachineModuleInfo()
, Personalities()
, CallsEHReturn(0)
, CallsUnwindInit(0)
+, DbgInfoAvailable(false)
{
// Always emit "no personality" info
Personalities.push_back(NULL);
OpenPOWER on IntegriCloud