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
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h
index 5c61ad8..6339f51 100644
--- a/CodeGen/CodeGenModule.h
+++ b/CodeGen/CodeGenModule.h
@@ -33,6 +33,7 @@
class Expr;
class Stmt;
class ValueDecl;
+ class VarDecl;
class FileVarDecl;
struct LangOptions;
class Diagnostic;
@@ -69,8 +70,7 @@
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