From: Chris Lattner Date: Wed, 25 Jan 2006 19:58:26 +0000 (+0000) Subject: add some useful accessors :) X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3ebf994b9ac1a19e948bc4be10ed13c627687360;p=oota-llvm.git add some useful accessors :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25612 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/InlineAsm.h b/include/llvm/InlineAsm.h index e56bdeffad9..b86c99ad303 100644 --- a/include/llvm/InlineAsm.h +++ b/include/llvm/InlineAsm.h @@ -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;