From 3ebf994b9ac1a19e948bc4be10ed13c627687360 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Jan 2006 19:58:26 +0000 Subject: [PATCH] add some useful accessors :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25612 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/InlineAsm.h | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.34.1