diff options
Diffstat (limited to 'll.cpp')
-rw-r--r-- | ll.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -250,7 +250,7 @@ static AST* parseCallExpr(const SExp& exp) } /// prototype ::= (name [arg*]) -static ASTPrototype* ParsePrototype(bool foreign, const SExp& exp) +static ASTPrototype* parsePrototype(bool foreign, const SExp& exp) { assert(head(exp) != ""); list<SExp>::const_iterator i = exp.list.begin(); @@ -273,7 +273,7 @@ static ASTFunction* parseDefinition(const SExp& exp) list<SExp>::const_iterator i = exp.list.begin(); ++i; - ASTPrototype* proto = ParsePrototype(false, *i++); + ASTPrototype* proto = parsePrototype(false, *i++); AST* body = parseExpression(*i++); return new ASTFunction(proto, body); @@ -286,7 +286,7 @@ static ASTPrototype* parseForeign(const SExp& exp) list<SExp>::const_iterator i = exp.list.begin(); ++i; - return ParsePrototype(true, *i++); + return parsePrototype(true, *i++); } static AST* parseExpression(const SExp& exp) @@ -414,8 +414,8 @@ Value* ASTIf::Codegen(CEnv& cenv) Function* ASTPrototype::Funcgen(CEnv& cenv) { // Make the function type, e.g. double(double,double) - vector<const Type*> Doubles(_args.size(), Type::DoubleTy); - FunctionType* FT = FunctionType::get(Type::DoubleTy, Doubles, false); + vector<const Type*> argsT(_args.size(), Type::DoubleTy); + FunctionType* FT = FunctionType::get(Type::DoubleTy, argsT, false); Function* f = Function::Create( FT, Function::ExternalLinkage, _name, cenv.module); |