diff --git a/llvm/include/llvm/Object/ELFObjectFile.h b/llvm/include/llvm/Object/ELFObjectFile.h --- a/llvm/include/llvm/Object/ELFObjectFile.h +++ b/llvm/include/llvm/Object/ELFObjectFile.h @@ -51,6 +51,12 @@ 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 @@ SubtargetFeatures getFeatures() const override; - SubtargetFeatures getMIPSFeatures() const; - - SubtargetFeatures getARMFeatures() const; - - SubtargetFeatures getRISCVFeatures() const; - Optional tryGetCPUName() const override; - StringRef getAMDGPUCPUName() const; - void setARMSubArch(Triple &TheTriple) const override; virtual uint16_t getEType() const = 0;