mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 00:59:19 +00:00
Revert r319090, "COFF: Do not create SectionChunks for discarded comdat sections."
Caused test failures in check-cfi on Windows. http://lab.llvm.org:8011/builders/sanitizer-windows/builds/20284 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
568c078eb1
commit
a94d5cd611
@ -275,8 +275,6 @@ struct coff_symbol_generic {
|
||||
support::ulittle32_t Value;
|
||||
};
|
||||
|
||||
struct coff_aux_section_definition;
|
||||
|
||||
class COFFSymbolRef {
|
||||
public:
|
||||
COFFSymbolRef() = default;
|
||||
@ -348,18 +346,6 @@ public:
|
||||
return (getType() & 0xF0) >> COFF::SCT_COMPLEX_TYPE_SHIFT;
|
||||
}
|
||||
|
||||
template <typename T> const T *getAux() const {
|
||||
return CS16 ? reinterpret_cast<const T *>(CS16 + 1)
|
||||
: reinterpret_cast<const T *>(CS32 + 1);
|
||||
}
|
||||
|
||||
const coff_aux_section_definition *getSectionDefinition() const {
|
||||
if (!getNumberOfAuxSymbols() ||
|
||||
getStorageClass() != COFF::IMAGE_SYM_CLASS_STATIC)
|
||||
return nullptr;
|
||||
return getAux<coff_aux_section_definition>();
|
||||
}
|
||||
|
||||
bool isAbsolute() const {
|
||||
return getSectionNumber() == -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user