aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenModule.h
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
commit8e74c93ddaa8268a999e1b25c723dc1984a434b4 (patch)
tree953d578ce23989102964d2b980e4940657f5571c /CodeGen/CodeGenModule.h
parent7d6402f753916a82d93ef0bf0f703ae4243a52be (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.h')
-rw-r--r--CodeGen/CodeGenModule.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h
index af2db80840..d94f54a846 100644
--- a/CodeGen/CodeGenModule.h
+++ b/CodeGen/CodeGenModule.h
@@ -28,6 +28,7 @@ namespace clang {
class ASTContext;
class FunctionDecl;
class Decl;
+ class ValueDecl;
class FileVarDecl;
namespace CodeGen {
@@ -53,7 +54,7 @@ public:
llvm::Module &getModule() const { return TheModule; }
CodeGenTypes &getTypes() { return Types; }
- llvm::Constant *GetAddrOfGlobalDecl(const Decl *D);
+ llvm::Constant *GetAddrOfGlobalDecl(const ValueDecl *D);
/// getBuiltinLibFunction - Given a builtin id for a function like
/// "__builtin_fabsf", return a Function* for "fabsf".