From 024e2e32c22804f1bd95b64c17192b02a5541843 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Jan 2009 04:52:38 +0000 Subject: Cleanup. git-svn-id: http://svn.drobilla.net/resp/llvm-lisp@4 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- ll.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ll.cpp b/ll.cpp index 41106a8..8a4ceb5 100644 --- a/ll.cpp +++ b/ll.cpp @@ -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::const_iterator i = exp.list.begin(); @@ -273,7 +273,7 @@ static ASTFunction* parseDefinition(const SExp& exp) list::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::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 Doubles(_args.size(), Type::DoubleTy); - FunctionType* FT = FunctionType::get(Type::DoubleTy, Doubles, false); + vector argsT(_args.size(), Type::DoubleTy); + FunctionType* FT = FunctionType::get(Type::DoubleTy, argsT, false); Function* f = Function::Create( FT, Function::ExternalLinkage, _name, cenv.module); -- cgit v1.2.1