From b4587293a53a4da4553a1a28ca460d0c84c6e5df Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 5 May 2014 20:21:03 +0000 Subject: Fix pr19653. Warn if an alias requests a section other than the aliasee section. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207997 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 419324d7d8..4a1573b849 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -1050,6 +1050,8 @@ private: /// NOTE: This should only be called for definitions. void SetCommonAttributes(const Decl *D, llvm::GlobalValue *GV); + void setNonAliasAttributes(const Decl *D, llvm::GlobalValue *GV); + /// SetFunctionDefinitionAttributes - Set attributes for a global definition. void SetFunctionDefinitionAttributes(const FunctionDecl *D, llvm::GlobalValue *GV); -- cgit v1.2.3