[WIP] add check for polymorphic functions

This commit is contained in:
2017-05-02 14:59:04 -04:00
parent 0887760de1
commit b3b02df569
5 changed files with 30 additions and 1 deletions

3
func.h
View File

@@ -51,6 +51,9 @@ public:
/** Generate LLVM IR for the function into the current module. */
void GenerateIR();
/** Checks if the function has polymorphic parameters */
const bool IsPolyFunction() const;
private:
void emitCode(FunctionEmitContext *ctx, llvm::Function *function,
SourcePos firstStmtPos);