summaryrefslogtreecommitdiff
path: root/Type.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Type.hh')
-rw-r--r--Type.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/Type.hh b/Type.hh
index b686e28..e16b52f 100644
--- a/Type.hh
+++ b/Type.hh
@@ -189,13 +189,15 @@ class FunctionType : public Type {
public:
FunctionType(std::shared_ptr<Type> ReturnType,
std::vector<std::shared_ptr<Type>> ArgTypes,
- std::string&& name);
+ std::string&& name, bool IsVariadic = false);
std::shared_ptr<Type> GetReturnType();
std::vector<std::shared_ptr<Type>> GetArgTypes();
+ bool IsVariadic();
protected:
std::shared_ptr<Type> ReturnType_;
std::vector<std::shared_ptr<Type>> ArgTypes_;
+ bool IsVariadic_;
};
using RecordMember = std::pair<std::string, std::shared_ptr<Type>>;