summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/FreeBSD.h
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-12-12 10:49:46 -0800
committerFangrui Song <maskray@google.com>2019-12-13 14:06:51 -0800
commite4fce659a759ecdd59ceee750f1ff9b44f9de3f3 (patch)
tree15ad038aa1ad8ce430a82d65edba1c65d424dc0a /clang/lib/Driver/ToolChains/FreeBSD.h
parent8035bb4a6573f7d20f17044a68a1405691000525 (diff)
downloadbcm5719-llvm-e4fce659a759ecdd59ceee750f1ff9b44f9de3f3.tar.gz
bcm5719-llvm-e4fce659a759ecdd59ceee750f1ff9b44f9de3f3.zip
[Driver] Use .init_array for all gcc installations and simplify Generic_ELF -fno-use-init-array rules
D39317 made clang use .init_array when no gcc installations is found. This change changes all gcc installations to use .init_array . GCC 4.7 by default stopped providing .ctors/.dtors compatible crt files, and stopped emitting .ctors for __attribute__((constructor)). .init_array should always work. FreeBSD rules are moved to FreeBSD.cpp to make Generic_ELF rules clean. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D71434
Diffstat (limited to 'clang/lib/Driver/ToolChains/FreeBSD.h')
-rw-r--r--clang/lib/Driver/ToolChains/FreeBSD.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/FreeBSD.h b/clang/lib/Driver/ToolChains/FreeBSD.h
index 53bc5265c9e..84bdbfd9a31 100644
--- a/clang/lib/Driver/ToolChains/FreeBSD.h
+++ b/clang/lib/Driver/ToolChains/FreeBSD.h
@@ -76,6 +76,10 @@ public:
// Until dtrace (via CTF) and LLDB can deal with distributed debug info,
// FreeBSD defaults to standalone/full debug info.
bool GetDefaultStandaloneDebug() const override { return true; }
+ void
+ addClangTargetOptions(const llvm::opt::ArgList &DriverArgs,
+ llvm::opt::ArgStringList &CC1Args,
+ Action::OffloadKind DeviceOffloadKind) const override;
protected:
Tool *buildAssembler() const override;
OpenPOWER on IntegriCloud