diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-16 03:19:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-16 03:19:19 +0000 |
commit | b7ec246872b412f0e7bb9e93eacfd78cfa6adfb3 (patch) | |
tree | 03d87c2a2a8966f8fa3652531269a98558147584 /lib/CodeGen/CGDecl.cpp | |
parent | 54d19091a809d30a5e6e352fda53377d69ebda66 (diff) |
Add NeXT runtime support for generating methods.
Change CodeGenFunction::EmitParmDecl to take either a ParmVarDecl or an
ImplicitParamDecl.
Drop hasAggregateLLVMType from CodeGenModule.cpp (use version in
CodeGenFunction).
Change the Objective-C method generation to use EmitParmDecl for
implicit parameters.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 5f0f7a987f..1d1721011b 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -191,7 +191,10 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { /// Emit an alloca (or GlobalValue depending on target) /// for the specified parameter and set up LocalDeclMap. -void CodeGenFunction::EmitParmDecl(const ParmVarDecl &D, llvm::Value *Arg) { +void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg) { + // FIXME: Why isn't ImplicitParamDecl a ParmVarDecl? + assert(isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D) && + "Invalid argument to EmitParmDecl"); QualType Ty = D.getType(); llvm::Value *DeclPtr; |