diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-09-19 01:54:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-09-19 01:54:22 +0000 |
commit | 9f834735cd64fd23dfeb88defcc509220f84518b (patch) | |
tree | 483ab28087f5b8d1074263775d52be96ca0f780e /clang/lib/CodeGen/CodeGenModule.h | |
parent | 8bf8409be8aae0ebe14717d05b24e6231f80a230 (diff) | |
download | bcm5719-llvm-9f834735cd64fd23dfeb88defcc509220f84518b.tar.gz bcm5719-llvm-9f834735cd64fd23dfeb88defcc509220f84518b.zip |
Don't use the third field of llvm.global_ctors for MachO.
The field is defined as:
If the third field is present, non-null, and points to a global variable or function, the initializer function will only run if the associated data from the current module is not discarded.
And without COMDATs we can't implement that.
llvm-svn: 218097
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index b36d4a66cd8..a095c9ddbb9 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -599,6 +599,9 @@ public: DiagnosticsEngine &getDiags() const { return Diags; } const llvm::DataLayout &getDataLayout() const { return TheDataLayout; } const TargetInfo &getTarget() const { return Target; } + const llvm::Triple &getTriple() const; + bool supportsCOMDAT() const; + CGCXXABI &getCXXABI() const { return *ABI; } llvm::LLVMContext &getLLVMContext() { return VMContext; } |