diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2008-07-29 23:18:29 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2008-07-29 23:18:29 +0000 |
| commit | 9c426524f8c1e0cd3fb1b05ceefb903629a4cda8 (patch) | |
| tree | ad75ea6eec15c8e9d0a6bee3b32c0c14ad7beea5 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | 6b1cc46fee3cb5f5c3140f68036346eef0079100 (diff) | |
| download | bcm5719-llvm-9c426524f8c1e0cd3fb1b05ceefb903629a4cda8.tar.gz bcm5719-llvm-9c426524f8c1e0cd3fb1b05ceefb903629a4cda8.zip | |
Rework codegen emission of globals
- No (intended) functionality change.
- Primary purpose is to clearly separate (lazy) construction of
globals that are a forward declaration or tentative definition from
those that are the final definition.
- Lazy construction is now encapsulated in
GetAddrOf{Function,GlobalVar} while final definitions are
constructed in EmitGlobal{Function,Var}Definition.
- External interface for dealing with globals is now limited to
EmitGlobal and GetAddrOf{Function,GlobalVar}.
- Also updated helper functions dealing with statics, annotations,
and ctors to be private.
llvm-svn: 54179
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 5bf6bc1fea4..38e10e90cef 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1,4 +1,4 @@ -//===--- CodeGenFunction.h - Per-Function state for LLVM CodeGen ----------===// +//===-- CodeGenFunction.h - Per-Function state for LLVM CodeGen -*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -277,7 +277,8 @@ public: ASTContext &getContext() const; void GenerateObjCMethod(const ObjCMethodDecl *OMD); - void GenerateCode(const FunctionDecl *FD); + void GenerateCode(const FunctionDecl *FD, + llvm::Function *Fn); void GenerateFunction(const Stmt *Body); const llvm::Type *ConvertType(QualType T); |

