diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-05 20:21:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-05 20:21:03 +0000 |
commit | 502f65ae54d0fd7272e64988c162af8d1958f35c (patch) | |
tree | 6bd2a1d9499c502363dbc0487fbc8128be26b658 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 9c8c96f08a39496805a63f67761e0dc42b43e9cc (diff) | |
download | bcm5719-llvm-502f65ae54d0fd7272e64988c162af8d1958f35c.tar.gz bcm5719-llvm-502f65ae54d0fd7272e64988c162af8d1958f35c.zip |
Fix pr19653.
Warn if an alias requests a section other than the aliasee section.
llvm-svn: 207997
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 419324d7d87..4a1573b8490 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/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); |