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 | b4587293a53a4da4553a1a28ca460d0c84c6e5df (patch) | |
| tree | 6ac168be06fed958a25d3854aae9c240d3638aa4 /lib/CodeGen/CodeGenModule.h | |
| parent | 8c57c846e095f88313aa725fe4b2892df2a27272 (diff) | |
| download | clang-b4587293a53a4da4553a1a28ca460d0c84c6e5df.tar.gz clang-b4587293a53a4da4553a1a28ca460d0c84c6e5df.tar.bz2 clang-b4587293a53a4da4553a1a28ca460d0c84c6e5df.tar.xz | |
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
