add a new enum type for linkage, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69028 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index b2e6e22..8b748cb 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -306,7 +306,13 @@
const char *getMangledName(const NamedDecl *ND);
-
+ enum GVALinkage {
+ GVA_Internal,
+ GVA_Inline,
+ GVA_ExternInline,
+ GVA_Normal
+ };
+
private:
llvm::Constant *GetOrCreateLLVMFunction(const char *MangledName,
const llvm::Type *Ty,
@@ -314,11 +320,10 @@
llvm::Constant *GetOrCreateLLVMGlobal(const char *MangledName,
const llvm::PointerType *PTy,
const VarDecl *D);
-
+
/// SetGlobalValueAttributes - Set attributes for a global decl.
void SetGlobalValueAttributes(const Decl *D,
- bool IsInternal,
- bool IsInline,
+ GVALinkage Linkage,
llvm::GlobalValue *GV,
bool ForDefinition);