diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp index edfccfcb9ed..465b62ce8c9 100644 --- a/lib/MC/MCObjectFileInfo.cpp +++ b/lib/MC/MCObjectFileInfo.cpp @@ -254,6 +254,9 @@ void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) { DwarfStrOffSection = Ctx->getMachOSection("__DWARF", "__debug_str_offs", MachO::S_ATTR_DEBUG, SectionKind::getMetadata(), "section_str_off"); + DwarfAddrSection = + Ctx->getMachOSection("__DWARF", "__debug_addr", MachO::S_ATTR_DEBUG, + SectionKind::getMetadata(), "section_info"); DwarfLocSection = Ctx->getMachOSection("__DWARF", "__debug_loc", MachO::S_ATTR_DEBUG, SectionKind::getMetadata(), "section_debug_loc");