Revert "[XCOFF] Fix link errors from explicit template instantiation"
This reverts commit c989993ba1
.
maskray already fixed the explicit instantiation definition in the .cpp
file, and these extern template declarations seem to be causing
warnings that I don't understand.
This commit is contained in:
parent
c989993ba1
commit
2cb3bfe975
|
@ -60,12 +60,6 @@ public:
|
|||
bool isReservedSectionType() const;
|
||||
};
|
||||
|
||||
// Explicit extern template declarations.
|
||||
struct XCOFFSectionHeader32;
|
||||
struct XCOFFSectionHeader64;
|
||||
extern template struct XCOFFSectionHeader<XCOFFSectionHeader32>;
|
||||
extern template struct XCOFFSectionHeader<XCOFFSectionHeader64>;
|
||||
|
||||
struct XCOFFSectionHeader32 : XCOFFSectionHeader<XCOFFSectionHeader32> {
|
||||
char Name[XCOFF::NameSize];
|
||||
support::ubig32_t PhysicalAddress;
|
||||
|
|
|
@ -61,10 +61,6 @@ bool XCOFFSectionHeader<T>::isReservedSectionType() const {
|
|||
return getSectionType() & SectionFlagsReservedMask;
|
||||
}
|
||||
|
||||
// Explictly instantiate template classes.
|
||||
template struct XCOFFSectionHeader<XCOFFSectionHeader32>;
|
||||
template struct XCOFFSectionHeader<XCOFFSectionHeader64>;
|
||||
|
||||
bool XCOFFRelocation32::isRelocationSigned() const {
|
||||
return Info & XR_SIGN_INDICATOR_MASK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue