diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-01-15 21:36:08 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-01-15 21:36:08 +0000 |
commit | dbee8a7a7ad891cff3f8938d5992999903fe6764 (patch) | |
tree | 4f8ae9cf7920ca3ccafcf4f7fa19316f2341d8d2 /clang/lib/CodeGen/CodeGenModule.h | |
parent | c59328e627ca607d14d2c34cca9fefe8c8749fa5 (diff) | |
download | bcm5719-llvm-dbee8a7a7ad891cff3f8938d5992999903fe6764.tar.gz bcm5719-llvm-dbee8a7a7ad891cff3f8938d5992999903fe6764.zip |
Use a trivial comdat for inline ctor/dtor when not using C5/D5.
When combined with llvm not producing implicit comdats, not doing this would
cause code bloat on ELF and link errors on COFF.
llvm-svn: 226211
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index ddcb414508a..4559aecff12 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -606,6 +606,7 @@ public: const TargetInfo &getTarget() const { return Target; } const llvm::Triple &getTriple() const; bool supportsCOMDAT() const; + void maybeSetTrivialComdat(const Decl &D, llvm::GlobalObject &GO); CGCXXABI &getCXXABI() const { return *ABI; } llvm::LLVMContext &getLLVMContext() { return VMContext; } |