[PATCH] D28893: Non-virtual subtarget features functions
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 01:20:18 PST 2017
samparker created this revision.
Herald added subscribers: mehdi_amini, aemerson.
Remove the virtual specifier from the getARM and getMIPSFeatures.
https://reviews.llvm.org/D28893
Files:
include/llvm/Object/ELFObjectFile.h
include/llvm/Object/ObjectFile.h
Index: include/llvm/Object/ObjectFile.h
===================================================================
--- include/llvm/Object/ObjectFile.h
+++ include/llvm/Object/ObjectFile.h
@@ -267,8 +267,6 @@
virtual StringRef getFileFormatName() const = 0;
virtual /* Triple::ArchType */ unsigned getArch() const = 0;
virtual SubtargetFeatures getFeatures() const = 0;
- virtual SubtargetFeatures getMIPSFeatures() const { return SubtargetFeatures(); }
- virtual SubtargetFeatures getARMFeatures() const { return SubtargetFeatures(); }
virtual void setARMSubArch(Triple &TheTriple) const { }
/// Returns platform-specific object flags, if any.
Index: include/llvm/Object/ELFObjectFile.h
===================================================================
--- include/llvm/Object/ELFObjectFile.h
+++ include/llvm/Object/ELFObjectFile.h
@@ -74,9 +74,9 @@
SubtargetFeatures getFeatures() const override;
- SubtargetFeatures getMIPSFeatures() const override;
+ SubtargetFeatures getMIPSFeatures() const;
- SubtargetFeatures getARMFeatures() const override;
+ SubtargetFeatures getARMFeatures() const;
void setARMSubArch(Triple &TheTriple) const override;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28893.84949.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170119/1b4075bd/attachment.bin>
More information about the llvm-commits
mailing list