summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-09-13 21:41:19 +0000
committerSteve Naroff <snaroff@apple.com>2007-09-13 21:41:19 +0000
commit9def2b15c1193ee423ffe11125154bd86dd71a1d (patch)
tree8c006647b8f389d9246fccf212784c3cdc84268a /clang/CodeGen/CodeGenModule.cpp
parent011f91b5b24cc27071877f3d75f961c187afc5d4 (diff)
downloadbcm5719-llvm-9def2b15c1193ee423ffe11125154bd86dd71a1d.tar.gz
bcm5719-llvm-9def2b15c1193ee423ffe11125154bd86dd71a1d.zip
Phase 2 of making the Decl class more lightweight...
Move Identifier/Loc instance variables (and associated getters/setters) down from Decl to ScopedDecl/FieldDecl. Objc AST's can now inherit from Decl without getting instance variables and types that are C specific. For now, I am keeping NextDeclarator, since I believe it may be useful to ObjC. If not, it can be moved later. llvm-svn: 41934
Diffstat (limited to 'clang/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenModule.cpp b/clang/CodeGen/CodeGenModule.cpp
index a26e1293362..e14b738a314 100644
--- a/clang/CodeGen/CodeGenModule.cpp
+++ b/clang/CodeGen/CodeGenModule.cpp
@@ -27,7 +27,7 @@ using namespace CodeGen;
CodeGenModule::CodeGenModule(ASTContext &C, llvm::Module &M)
: Context(C), TheModule(M), Types(C, M), CFConstantStringClassRef(0) {}
-llvm::Constant *CodeGenModule::GetAddrOfGlobalDecl(const Decl *D) {
+llvm::Constant *CodeGenModule::GetAddrOfGlobalDecl(const ValueDecl *D) {
// See if it is already in the map.
llvm::Constant *&Entry = GlobalDeclMap[D];
if (Entry) return Entry;
OpenPOWER on IntegriCloud