[llvm] 7b777ee - [ELF] Hide target specific methods as private
Ronak Chauhan via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 05:57:17 PDT 2020
Author: Ronak Chauhan
Date: 2020-08-18T18:26:08+05:30
New Revision: 7b777ee73077dff4d8f3a0160f2dcf977895fd57
URL: https://github.com/llvm/llvm-project/commit/7b777ee73077dff4d8f3a0160f2dcf977895fd57
DIFF: https://github.com/llvm/llvm-project/commit/7b777ee73077dff4d8f3a0160f2dcf977895fd57.diff
LOG: [ELF] Hide target specific methods as private
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D86136
Added:
Modified:
llvm/include/llvm/Object/ELFObjectFile.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Object/ELFObjectFile.h b/llvm/include/llvm/Object/ELFObjectFile.h
index d8e1b7e8819e..8049020f564b 100644
--- a/llvm/include/llvm/Object/ELFObjectFile.h
+++ b/llvm/include/llvm/Object/ELFObjectFile.h
@@ -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 @@ class ELFObjectFileBase : public ObjectFile {
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;
More information about the llvm-commits
mailing list