add some useful accessors :)
authorChris Lattner <sabre@nondot.org>
Wed, 25 Jan 2006 19:58:26 +0000 (19:58 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Jan 2006 19:58:26 +0000 (19:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25612 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/InlineAsm.h

index e56bdeffad9529bc993ab019ee717b9085ec7987..b86c99ad303cb1728de4c7a8c9050c20c1f1dda2 100644 (file)
@@ -52,6 +52,9 @@ public:
   /// getFunctionType - InlineAsm's are always pointers to functions.
   ///
   const FunctionType *getFunctionType() const;
+  
+  const std::string &getAsmString() const { return AsmString; }
+  const std::string &getConstraintString() const { return Constraints; }
 
   virtual void print(std::ostream &O) const { print(O, 0); }
   void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const;