Fix pr19653.

Warn if an alias requests a section other than the aliasee section.

llvm-svn: 207997
This commit is contained in:
Rafael Espindola
2014-05-05 20:21:03 +00:00
parent 9c8c96f08a
commit 502f65ae54
5 changed files with 41 additions and 11 deletions

View File

@@ -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);