From 08899ff85dde961d36bf0c94d07ee3418905d536 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Tue, 15 Apr 2008 22:42:06 +0000 Subject: Remove FileVarDecl and BlockVarDecl. They are replaced by VarDecl::isBlockVarDecl() and VarDecl::isFileVarDecl(). This is a fairly mechanical/large change. As a result, I avoided making any changes/simplifications that weren't directly related. I did break two Analysis tests. I also have a couple FIXME's in UninitializedValues.cpp. Ted, can you take a look? If the bug isn't obvious, I am happy to dig in and fix it (since I broke it). llvm-svn: 49748 --- clang/lib/CodeGen/CodeGenFunction.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.h') diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index df2c8b2331c..f40a0fad00b 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -70,7 +70,7 @@ namespace clang { class ObjCIvarRefExpr; class MemberExpr; - class BlockVarDecl; + class VarDecl; class EnumConstantDecl; class ParmVarDecl; class FieldDecl; @@ -344,16 +344,16 @@ public: const CGRecordLayout *getCGRecordLayout(CodeGenTypes &CGT, QualType RTy); /// GetAddrOfStaticLocalVar - Return the address of a static local variable. - llvm::Constant *GetAddrOfStaticLocalVar(const BlockVarDecl *BVD); + llvm::Constant *GetAddrOfStaticLocalVar(const VarDecl *BVD); //===--------------------------------------------------------------------===// // Declaration Emission //===--------------------------------------------------------------------===// void EmitDecl(const Decl &D); void EmitEnumConstantDecl(const EnumConstantDecl &D); - void EmitBlockVarDecl(const BlockVarDecl &D); - void EmitLocalBlockVarDecl(const BlockVarDecl &D); - void EmitStaticBlockVarDecl(const BlockVarDecl &D); + void EmitBlockVarDecl(const VarDecl &D); + void EmitLocalBlockVarDecl(const VarDecl &D); + void EmitStaticBlockVarDecl(const VarDecl &D); void EmitParmDecl(const ParmVarDecl &D, llvm::Value *Arg); //===--------------------------------------------------------------------===// -- cgit v1.2.3