summaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-18 08:16:44 +0000
committerChris Lattner <sabre@nondot.org>2007-12-18 08:16:44 +0000
commit2b9d2ca4ce53fffbe8a77c7db2fe4df5ccfb9fd4 (patch)
treecc70151907cd9fad63b5f8402a29f56629bf6252 /CodeGen/CodeGenModule.h
parent9bfa73c5ab7bf4b0e749d04f29da6884e8d5bd9f (diff)
downloadclang-2b9d2ca4ce53fffbe8a77c7db2fe4df5ccfb9fd4.tar.gz
local static vars are globals also. This fixes a testcase
reported by Seo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r--CodeGen/CodeGenModule.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h
index 5c61ad882b..6339f51671 100644
--- a/CodeGen/CodeGenModule.h
+++ b/CodeGen/CodeGenModule.h
@@ -33,6 +33,7 @@ namespace clang {
class Expr;
class Stmt;
class ValueDecl;
+ class VarDecl;
class FileVarDecl;
struct LangOptions;
class Diagnostic;
@@ -69,8 +70,7 @@ public:
llvm::Constant *GetAddrOfFunctionDecl(const FunctionDecl *D,
bool isDefinition);
- llvm::Constant *GetAddrOfFileVarDecl(const FileVarDecl *D,
- bool isDefinition);
+ llvm::Constant *GetAddrOfGlobalVar(const VarDecl *D, bool isDefinition);
/// getBuiltinLibFunction - Given a builtin id for a function like