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 | 9def2b15c1193ee423ffe11125154bd86dd71a1d (patch) | |
tree | 8c006647b8f389d9246fccf212784c3cdc84268a /clang/CodeGen/CodeGenModule.h | |
parent | 011f91b5b24cc27071877f3d75f961c187afc5d4 (diff) | |
download | bcm5719-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.h')
-rw-r--r-- | clang/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h index af2db808400..d94f54a8468 100644 --- a/clang/CodeGen/CodeGenModule.h +++ b/clang/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". |