diff options
Diffstat (limited to 'llvm/support/tools/TableGen/Record.h')
| -rw-r--r-- | llvm/support/tools/TableGen/Record.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/support/tools/TableGen/Record.h b/llvm/support/tools/TableGen/Record.h index 88312509ef3..4a2fa057cfd 100644 --- a/llvm/support/tools/TableGen/Record.h +++ b/llvm/support/tools/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; }; |

