[TargetParser] Properly attach functions of ARMTargetParser to the class

llvm-svn: 239158
This commit is contained in:
Benjamin Kramer 2015-06-05 14:33:02 +00:00
parent eaeddf4864
commit 41beb8bbfc

View File

@ -223,8 +223,6 @@ struct {
} // namespace } // namespace
namespace llvm {
// ======================================================= // // ======================================================= //
// Information by ID // Information by ID
// ======================================================= // // ======================================================= //
@ -241,13 +239,13 @@ unsigned ARMTargetParser::getFPUVersion(unsigned FPUKind) {
return FPUNames[FPUKind].FPUVersion; return FPUNames[FPUKind].FPUVersion;
} }
unsigned getFPUNeonSupportLevel(unsigned FPUKind) { unsigned ARMTargetParser::getFPUNeonSupportLevel(unsigned FPUKind) {
if (FPUKind >= ARM::FK_LAST) if (FPUKind >= ARM::FK_LAST)
return 0; return 0;
return FPUNames[FPUKind].NeonSupport; return FPUNames[FPUKind].NeonSupport;
} }
unsigned getFPURestriction(unsigned FPUKind) { unsigned ARMTargetParser::getFPURestriction(unsigned FPUKind) {
if (FPUKind >= ARM::FK_LAST) if (FPUKind >= ARM::FK_LAST)
return 0; return 0;
return FPUNames[FPUKind].Restriction; return FPUNames[FPUKind].Restriction;
@ -587,5 +585,3 @@ unsigned ARMTargetParser::parseArchVersion(StringRef Arch) {
} }
return 0; return 0;
} }
} // namespace llvm