diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2008-02-26 21:41:45 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2008-02-26 21:41:45 +0000 |
commit | 813733577d33ec56479667b49e1bff42dc6bba90 (patch) | |
tree | 121170a321a1591e3fb5288191182cac90bb66d4 /CodeGen/CodeGenFunction.h | |
parent | d87a321a3c3902f7acfc6539b8946a00da6e45cc (diff) |
Implement codegen for the following static var init.
void g() {
static char a[10];
static char *b = a;
}
Now we can compile wget!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenFunction.h')
-rw-r--r-- | CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h index e885752933..b136c2b061 100644 --- a/CodeGen/CodeGenFunction.h +++ b/CodeGen/CodeGenFunction.h @@ -335,6 +335,9 @@ public: /// getCGRecordLayout - Return record layout info. const CGRecordLayout *getCGRecordLayout(CodeGenTypes &CGT, QualType RTy); + + /// GetAddrOfStaticLocalVar - Return the address of a static local variable. + llvm::Constant *GetAddrOfStaticLocalVar(const BlockVarDecl *BVD); //===--------------------------------------------------------------------===// // Declaration Emission //===--------------------------------------------------------------------===// |