diff options
author | Steve Naroff <snaroff@apple.com> | 2008-04-15 22:42:06 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-04-15 22:42:06 +0000 |
commit | 08899ff85dde961d36bf0c94d07ee3418905d536 (patch) | |
tree | f62f9495dbc4863310a91c87b36f3a17446beb8d /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 82b6673c44ee0153c5f252f38b95cb21396cc0b2 (diff) | |
download | bcm5719-llvm-08899ff85dde961d36bf0c94d07ee3418905d536.tar.gz bcm5719-llvm-08899ff85dde961d36bf0c94d07ee3418905d536.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
-rw-r--r-- | clang/lib/CodeGen/ModuleBuilder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/ModuleBuilder.cpp b/clang/lib/CodeGen/ModuleBuilder.cpp index 5710d8bf980..53ee2e45517 100644 --- a/clang/lib/CodeGen/ModuleBuilder.cpp +++ b/clang/lib/CodeGen/ModuleBuilder.cpp @@ -63,8 +63,9 @@ namespace { if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { Builder->EmitFunction(FD); - } else if (FileVarDecl *FVD = dyn_cast<FileVarDecl>(D)) { - Builder->EmitGlobalVarDeclarator(FVD); + } else if (VarDecl *VD = dyn_cast<VarDecl>(D)) { + if (VD->isFileVarDecl()) + Builder->EmitGlobalVarDeclarator(VD); } else if (isa<ObjCClassDecl>(D) || isa<ObjCCategoryDecl>(D)) { // Forward declaration. Only used for type checking. } else if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)){ |