aboutsummaryrefslogtreecommitdiffstats
path: root/support/tools/TableGen/Record.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/tools/TableGen/Record.h')
-rw-r--r--support/tools/TableGen/Record.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/tools/TableGen/Record.h b/support/tools/TableGen/Record.h
index 8831250..4a2fa05 100644
--- a/support/tools/TableGen/Record.h
+++ b/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;
};