diff options
author | David Robillard <d@drobilla.net> | 2009-01-23 04:52:38 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-01-23 04:52:38 +0000 |
commit | 024e2e32c22804f1bd95b64c17192b02a5541843 (patch) | |
tree | b290140bc45674df6cc42006f0bc7f284979d36e | |
parent | 015eb7a45c1cdd4c762252a78bece2a48947bc89 (diff) | |
download | resp-024e2e32c22804f1bd95b64c17192b02a5541843.tar.gz resp-024e2e32c22804f1bd95b64c17192b02a5541843.tar.bz2 resp-024e2e32c22804f1bd95b64c17192b02a5541843.zip |
Cleanup.
git-svn-id: http://svn.drobilla.net/resp/llvm-lisp@4 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-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); |