Revert "Fix bug in PE/COFF plugin and ValueObjectVariable."
It breaks some tests on MacOS. llvm-svn: 346444
This commit is contained in:
@@ -710,10 +710,7 @@ void ObjectFilePECOFF::CreateSections(SectionList &unified_section_list) {
|
||||
llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA &&
|
||||
((const_sect_name == g_data_sect_name) ||
|
||||
(const_sect_name == g_DATA_sect_name))) {
|
||||
if (m_sect_headers[idx].size == 0 && m_sect_headers[idx].offset == 0)
|
||||
section_type = eSectionTypeZeroFill;
|
||||
else
|
||||
section_type = eSectionTypeData;
|
||||
section_type = eSectionTypeData;
|
||||
} else if (m_sect_headers[idx].flags &
|
||||
llvm::COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA &&
|
||||
((const_sect_name == g_bss_sect_name) ||
|
||||
@@ -1056,7 +1053,6 @@ ObjectFile::Type ObjectFilePECOFF::CalculateType() {
|
||||
}
|
||||
|
||||
ObjectFile::Strata ObjectFilePECOFF::CalculateStrata() { return eStrataUser; }
|
||||
|
||||
//------------------------------------------------------------------
|
||||
// PluginInterface protocol
|
||||
//------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user