aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-25 19:58:26 +0000
committerChris Lattner <sabre@nondot.org>2006-01-25 19:58:26 +0000
commit3ebf994b9ac1a19e948bc4be10ed13c627687360 (patch)
tree23d0aa19bc5edac57f68b622cee150c0012fa213
parent863517aea0b06770c809396be985c1c4cc50d3c4 (diff)
add some useful accessors :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25612 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/InlineAsm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/InlineAsm.h b/include/llvm/InlineAsm.h
index e56bdeffad..b86c99ad30 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;