[llvm] r239158 - [TargetParser] Properly attach functions of ARMTargetParser to the class

Benjamin Kramer benny.kra at GOOGLEMAIL.com
Fri Jun 5 07:33:02 PDT 2015


Author: d0k
Date: Fri Jun  5 09:33:02 2015
New Revision: 239158

URL: http://llvm.org/viewvc/llvm-project?rev=239158&view=rev
Log:
[TargetParser] Properly attach functions of ARMTargetParser to the class

Modified:
    llvm/trunk/lib/Support/TargetParser.cpp

Modified: llvm/trunk/lib/Support/TargetParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/TargetParser.cpp?rev=239158&r1=239157&r2=239158&view=diff
==============================================================================
--- llvm/trunk/lib/Support/TargetParser.cpp (original)
+++ llvm/trunk/lib/Support/TargetParser.cpp Fri Jun  5 09:33:02 2015
@@ -223,8 +223,6 @@ struct {
 
 } // namespace
 
-namespace llvm {
-
 // ======================================================= //
 // Information by ID
 // ======================================================= //
@@ -241,13 +239,13 @@ unsigned ARMTargetParser::getFPUVersion(
   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::parseArchVersi
   }
   return 0;
 }
-
-} // namespace llvm





More information about the llvm-commits mailing list