diff options
author | Steve Naroff <snaroff@apple.com> | 2007-09-13 21:41:19 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-09-13 21:41:19 +0000 |
commit | 8e74c93ddaa8268a999e1b25c723dc1984a434b4 (patch) | |
tree | 953d578ce23989102964d2b980e4940657f5571c /CodeGen/CodeGenModule.cpp | |
parent | 7d6402f753916a82d93ef0bf0f703ae4243a52be (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.cpp')
-rw-r--r-- | CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeGen/CodeGenModule.cpp b/CodeGen/CodeGenModule.cpp index a26e129336..e14b738a31 100644 --- a/CodeGen/CodeGenModule.cpp +++ b/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; |