]> granicus.if.org Git - clang/commitdiff
Group some of the inline assembly related function prototypes near
authorEric Christopher <echristo@gmail.com>
Wed, 26 Aug 2015 07:29:58 +0000 (07:29 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 26 Aug 2015 07:29:58 +0000 (07:29 +0000)
each other.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246024 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/TargetInfo.h

index 67d2fdf6f349ceeb545f224acc49fa6fda790f01..89c9f456e58997b34143c6f3d4517e84f71981e7 100644 (file)
@@ -660,6 +660,10 @@ public:
                              std::string &/*SuggestedModifier*/) const {
     return true;
   }
+  virtual bool
+  validateAsmConstraint(const char *&Name,
+                        TargetInfo::ConstraintInfo &info) const = 0;
+
   bool resolveSymbolicName(const char *&Name,
                            ConstraintInfo *OutputConstraints,
                            unsigned NumOutputs, unsigned &Index) const;
@@ -674,16 +678,15 @@ public:
     return std::string(1, *Constraint);
   }
 
+  /// \brief Returns a string of target-specific clobbers, in LLVM format.
+  virtual const char *getClobbers() const = 0;
+
   /// \brief Returns true if NaN encoding is IEEE 754-2008.
   /// Only MIPS allows a different encoding.
   virtual bool isNan2008() const {
     return true;
   }
 
-  /// \brief Returns a string of target-specific clobbers, in LLVM format.
-  virtual const char *getClobbers() const = 0;
-
-
   /// \brief Returns the target triple of the primary target.
   const llvm::Triple &getTriple() const {
     return Triple;
@@ -939,8 +942,6 @@ protected:
     Addl = nullptr;
     NumAddl = 0;
   }
-  virtual bool validateAsmConstraint(const char *&Name,
-                                     TargetInfo::ConstraintInfo &info) const= 0;
 };
 
 }  // end namespace clang