[llvm-commits] CVS: llvm/include/llvm/InlineAsm.h

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 25 11:58:38 PST 2006



Changes in directory llvm/include/llvm:

InlineAsm.h updated: 1.3 -> 1.4
---
Log message:

add some useful accessors :)


---
Diffs of the changes:  (+3 -0)

 InlineAsm.h |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/include/llvm/InlineAsm.h
diff -u llvm/include/llvm/InlineAsm.h:1.3 llvm/include/llvm/InlineAsm.h:1.4
--- llvm/include/llvm/InlineAsm.h:1.3	Wed Jan 25 12:55:19 2006
+++ llvm/include/llvm/InlineAsm.h	Wed Jan 25 13:58:26 2006
@@ -52,6 +52,9 @@
   /// 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;






More information about the llvm-commits mailing list