From 990db46e9ae7faa742a152ca4126d0bee9f1df9c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 10 Aug 2003 22:38:36 +0000 Subject: Implement autopromotion of leaf trees from arguments to nodes of their own, making it easier to write patterns without lots of extraneous parens git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7714 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/Record.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/TableGen/Record.h') diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 88312509ef..4a2fa057cf 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -619,6 +619,11 @@ public: return ArgNames[Num]; } + void setArg(unsigned Num, Init *I) { + assert(Num < Args.size() && "Arg number out of range!"); + Args[Num] = I; + } + virtual void print(std::ostream &OS) const; }; -- cgit v1.2.3