aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-14 06:04:17 +0000
committerChris Lattner <sabre@nondot.org>2009-04-14 06:04:17 +0000
commit44b0bc008ee11cdee69ad12210ca7550e4fa426a (patch)
treeea0c2e08fbf46bcf63f57e9f89d26a35e52d4cee /lib/CodeGen/CodeGenModule.h
parent04d4078425614bf9fd58d606335c1f5f74ee7fa4 (diff)
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h13
1 files changed, 9 insertions, 4 deletions
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);