From: Chris Lattner Date: Wed, 25 Jan 2006 22:10:35 +0000 (+0000) Subject: add another method X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=867335c3395faa3b2cbe17e87c425813b45704b1;p=oota-llvm.git add another method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25616 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/InlineAsm.h b/include/llvm/InlineAsm.h index b86c99ad303..b4edaacd196 100644 --- a/include/llvm/InlineAsm.h +++ b/include/llvm/InlineAsm.h @@ -59,6 +59,13 @@ public: virtual void print(std::ostream &O) const { print(O, 0); } void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const; + /// Verify - This static method can be used by the parser to check to see if + /// the specified constraint string is legal for the type. This returns true + /// if legal, false if not. + /// + static bool Verify(const FunctionType *Ty, const std::string &Constraints); + + // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const InlineAsm *) { return true; } static inline bool classof(const Value *V) {