summaryrefslogtreecommitdiff
path: root/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
commit0f09c9f5ac4017f4accda3691832e71ba7158c2c (patch)
tree161809182317eec31084007020362bf64dcc23e2 /lib/MC/MCObjectFileInfo.cpp
parentd9615670b7d2b6b43d19d6e8706e9d504f91030e (diff)
downloadllvm-0f09c9f5ac4017f4accda3691832e71ba7158c2c.tar.gz
llvm-0f09c9f5ac4017f4accda3691832e71ba7158c2c.tar.bz2
llvm-0f09c9f5ac4017f4accda3691832e71ba7158c2c.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--lib/MC/MCObjectFileInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp
index 5d7a5f8863..4cc872ec0e 100644
--- a/lib/MC/MCObjectFileInfo.cpp
+++ b/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() {