summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-01-10 01:38:41 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-01-10 01:38:41 +0000
commit15ed5ebfc54bcebbdcf3ec12d2492867aef552d7 (patch)
treea13e1681b5059c32736782bd0ae9575567c8d0c5 /llvm/lib/MC/MCObjectFileInfo.cpp
parentf4518def33cc712fc71df9fb6f189df2a1316a59 (diff)
downloadbcm5719-llvm-15ed5ebfc54bcebbdcf3ec12d2492867aef552d7.tar.gz
bcm5719-llvm-15ed5ebfc54bcebbdcf3ec12d2492867aef552d7.zip
Revert "Revert r198851, "Prototype of skeleton type units for fission""
This reverts commit r198865 which reverts r198851. ASan identified a use-of-uninitialized of the DwarfTypeUnit::Ty variable in skeleton type units. llvm-svn: 198908
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 5d7a5f88632..4cc872ec0e7 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -726,8 +726,9 @@ const MCSection *MCObjectFileInfo::getDwarfTypesSection(uint64_t Hash) const {
const MCSection *
MCObjectFileInfo::getDwarfTypesDWOSection(uint64_t Hash) const {
- return Ctx->getELFSection(".debug_types.dwo", ELF::SHT_GROUP, 0,
- SectionKind::getMetadata(), 0, utostr(Hash));
+ return Ctx->getELFSection(".debug_types.dwo", ELF::SHT_PROGBITS,
+ ELF::SHF_GROUP, SectionKind::getMetadata(), 0,
+ utostr(Hash));
}
void MCObjectFileInfo::InitEHFrameSection() {
OpenPOWER on IntegriCloud