diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-30 12:10:38 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-30 12:10:38 +0800 |
| commit | 4c9d2d541c90968db2065260dc94c3be9e8adef9 (patch) | |
| tree | d9c67d89bb7709bd76ea4809101efbd55dd1a9b0 /node/FunctionNode.hh | |
| parent | 63d2a1c552b0d190a0131c2db2045d154b9ec138 (diff) | |
use llvm::Function* to call a function for backward compatibility
Diffstat (limited to 'node/FunctionNode.hh')
| -rw-r--r-- | node/FunctionNode.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/FunctionNode.hh b/node/FunctionNode.hh index 415c2cc..d317402 100644 --- a/node/FunctionNode.hh +++ b/node/FunctionNode.hh @@ -13,7 +13,7 @@ class FunctionNode : public BaseNode { FunctionNode(Context* context, std::string&& name, std::list<Declaration>&& arguments, std::list<std::shared_ptr<DeclNode>>&& LocalDeclarations, - std::shared_ptr<Type> type, + std::shared_ptr<Type> ReturnType, std::shared_ptr<StatementListNode> body); virtual Value CodeGen() override; @@ -21,7 +21,7 @@ class FunctionNode : public BaseNode { std::string name_; std::list<Declaration> arguments_; std::list<std::shared_ptr<DeclNode>> LocalDeclarations_; - std::shared_ptr<Type> type_; + std::shared_ptr<Type> ReturnType_; VariableList locals_; std::shared_ptr<StatementListNode> body_; }; |
