[ELF] Hide target specific methods as private

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D86136
This commit is contained in:
Ronak Chauhan 2020-08-18 18:12:41 +05:30
parent b682d6311b
commit 6e3663ae70

View File

@ -51,6 +51,12 @@ class ELFObjectFileBase : public ObjectFile {
friend class ELFSectionRef;
friend class ELFSymbolRef;
SubtargetFeatures getMIPSFeatures() const;
SubtargetFeatures getARMFeatures() const;
SubtargetFeatures getRISCVFeatures() const;
StringRef getAMDGPUCPUName() const;
protected:
ELFObjectFileBase(unsigned int Type, MemoryBufferRef Source);
@ -80,16 +86,8 @@ public:
SubtargetFeatures getFeatures() const override;
SubtargetFeatures getMIPSFeatures() const;
SubtargetFeatures getARMFeatures() const;
SubtargetFeatures getRISCVFeatures() const;
Optional<StringRef> tryGetCPUName() const override;
StringRef getAMDGPUCPUName() const;
void setARMSubArch(Triple &TheTriple) const override;
virtual uint16_t getEType() const = 0;