aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
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);