[ELF] Hide target specific methods as private
authorRonak Chauhan <RonakNilesh.Chauhan@amd.com>
Tue, 18 Aug 2020 12:42:41 +0000 (18:12 +0530)
committerRonak Chauhan <RonakNilesh.Chauhan@amd.com>
Tue, 18 Aug 2020 12:56:08 +0000 (18:26 +0530)
Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D86136

llvm/include/llvm/Object/ELFObjectFile.h

index d8e1b7e..8049020 100644 (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;