[TargetParser] Properly attach functions of ARMTargetParser to the class
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Jun 2015 14:33:02 +0000 (14:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Jun 2015 14:33:02 +0000 (14:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239158 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/TargetParser.cpp

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