From 44b0bc008ee11cdee69ad12210ca7550e4fa426a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 14 Apr 2009 06:04:17 +0000 Subject: 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 --- lib/CodeGen/CodeGenModule.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index b2e6e228e0..8b748cb762 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -306,7 +306,13 @@ public: 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 @@ private: 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); -- cgit v1.2.3