2013-12-10 03:04:19 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2017-06-07 12:48:49 +08:00
|
|
|
BinaryFormat
|
2013-12-10 03:04:19 +08:00
|
|
|
Option
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
2016-05-14 16:12:37 +08:00
|
|
|
if(WIN32)
|
|
|
|
# MSVCToolChain.cpp uses version.dll.
|
|
|
|
set(system_libs version)
|
|
|
|
endif()
|
|
|
|
|
2009-03-13 19:37:39 +08:00
|
|
|
add_clang_library(clangDriver
|
|
|
|
Action.cpp
|
|
|
|
Compilation.cpp
|
2016-11-29 05:11:14 +08:00
|
|
|
Distro.cpp
|
2009-03-13 19:37:39 +08:00
|
|
|
Driver.cpp
|
2009-11-19 08:15:11 +08:00
|
|
|
DriverOptions.cpp
|
2009-03-25 01:52:34 +08:00
|
|
|
Job.cpp
|
2014-02-12 11:21:20 +08:00
|
|
|
Multilib.cpp
|
2009-03-13 19:37:39 +08:00
|
|
|
Phases.cpp
|
2013-08-08 18:11:02 +08:00
|
|
|
SanitizerArgs.cpp
|
2009-03-25 01:52:34 +08:00
|
|
|
Tool.cpp
|
|
|
|
ToolChain.cpp
|
[Driver] Consolidate tools and toolchains by target platform. (NFC)
Summary:
(This is a move-only refactoring patch. There are no functionality changes.)
This patch splits apart the Clang driver's tool and toolchain implementation
files. Each target platform toolchain is moved to its own file, along with the
closest-related tools. Each target platform toolchain has separate headers and
implementation files, so the hierarchy of classes is unchanged.
There are some remaining shared free functions, mostly from Tools.cpp. Several
of these move to their own architecture-specific files, similar to r296056. Some
of them are only used by a single target platform; since the tools and
toolchains are now together, some helpers now live in a platform-specific file.
The balance are helpers related to manipulating argument lists, so they are now
in a new file pair, CommonArgs.h and .cpp.
I've tried to cluster the code logically, which is fairly straightforward for
most of the target platforms and shared architectures. I think I've made
reasonable choices for these, as well as the various shared helpers; but of
course, I'm happy to hear feedback in the review.
There are some particular things I don't like about this patch, but haven't been
able to find a better overall solution. The first is the proliferation of files:
there are several files that are tiny because the toolchain is not very
different from its base (usually the Gnu tools/toolchain). I think this is
mostly a reflection of the true complexity, though, so it may not be "fixable"
in any reasonable sense. The second thing I don't like are the includes like
"../Something.h". I've avoided this largely by clustering into the current file
structure. However, a few of these includes remain, and in those cases it
doesn't make sense to me to sink an existing file any deeper.
Reviewers: rsmith, mehdi_amini, compnerd, rnk, javed.absar
Subscribers: emaste, jfb, danalbert, srhines, dschuff, jyknight, nemanjai, nhaehnle, mgorny, cfe-commits
Differential Revision: https://reviews.llvm.org/D30372
llvm-svn: 297250
2017-03-08 09:02:16 +08:00
|
|
|
ToolChains/Arch/AArch64.cpp
|
|
|
|
ToolChains/Arch/ARM.cpp
|
|
|
|
ToolChains/Arch/Mips.cpp
|
|
|
|
ToolChains/Arch/PPC.cpp
|
|
|
|
ToolChains/Arch/Sparc.cpp
|
|
|
|
ToolChains/Arch/SystemZ.cpp
|
|
|
|
ToolChains/Arch/X86.cpp
|
2017-06-25 16:29:09 +08:00
|
|
|
ToolChains/Ananas.cpp
|
[Driver] Consolidate tools and toolchains by target platform. (NFC)
Summary:
(This is a move-only refactoring patch. There are no functionality changes.)
This patch splits apart the Clang driver's tool and toolchain implementation
files. Each target platform toolchain is moved to its own file, along with the
closest-related tools. Each target platform toolchain has separate headers and
implementation files, so the hierarchy of classes is unchanged.
There are some remaining shared free functions, mostly from Tools.cpp. Several
of these move to their own architecture-specific files, similar to r296056. Some
of them are only used by a single target platform; since the tools and
toolchains are now together, some helpers now live in a platform-specific file.
The balance are helpers related to manipulating argument lists, so they are now
in a new file pair, CommonArgs.h and .cpp.
I've tried to cluster the code logically, which is fairly straightforward for
most of the target platforms and shared architectures. I think I've made
reasonable choices for these, as well as the various shared helpers; but of
course, I'm happy to hear feedback in the review.
There are some particular things I don't like about this patch, but haven't been
able to find a better overall solution. The first is the proliferation of files:
there are several files that are tiny because the toolchain is not very
different from its base (usually the Gnu tools/toolchain). I think this is
mostly a reflection of the true complexity, though, so it may not be "fixable"
in any reasonable sense. The second thing I don't like are the includes like
"../Something.h". I've avoided this largely by clustering into the current file
structure. However, a few of these includes remain, and in those cases it
doesn't make sense to me to sink an existing file any deeper.
Reviewers: rsmith, mehdi_amini, compnerd, rnk, javed.absar
Subscribers: emaste, jfb, danalbert, srhines, dschuff, jyknight, nemanjai, nhaehnle, mgorny, cfe-commits
Differential Revision: https://reviews.llvm.org/D30372
llvm-svn: 297250
2017-03-08 09:02:16 +08:00
|
|
|
ToolChains/AMDGPU.cpp
|
|
|
|
ToolChains/AVR.cpp
|
2017-05-25 23:42:13 +08:00
|
|
|
ToolChains/BareMetal.cpp
|
[Driver] Consolidate tools and toolchains by target platform. (NFC)
Summary:
(This is a move-only refactoring patch. There are no functionality changes.)
This patch splits apart the Clang driver's tool and toolchain implementation
files. Each target platform toolchain is moved to its own file, along with the
closest-related tools. Each target platform toolchain has separate headers and
implementation files, so the hierarchy of classes is unchanged.
There are some remaining shared free functions, mostly from Tools.cpp. Several
of these move to their own architecture-specific files, similar to r296056. Some
of them are only used by a single target platform; since the tools and
toolchains are now together, some helpers now live in a platform-specific file.
The balance are helpers related to manipulating argument lists, so they are now
in a new file pair, CommonArgs.h and .cpp.
I've tried to cluster the code logically, which is fairly straightforward for
most of the target platforms and shared architectures. I think I've made
reasonable choices for these, as well as the various shared helpers; but of
course, I'm happy to hear feedback in the review.
There are some particular things I don't like about this patch, but haven't been
able to find a better overall solution. The first is the proliferation of files:
there are several files that are tiny because the toolchain is not very
different from its base (usually the Gnu tools/toolchain). I think this is
mostly a reflection of the true complexity, though, so it may not be "fixable"
in any reasonable sense. The second thing I don't like are the includes like
"../Something.h". I've avoided this largely by clustering into the current file
structure. However, a few of these includes remain, and in those cases it
doesn't make sense to me to sink an existing file any deeper.
Reviewers: rsmith, mehdi_amini, compnerd, rnk, javed.absar
Subscribers: emaste, jfb, danalbert, srhines, dschuff, jyknight, nemanjai, nhaehnle, mgorny, cfe-commits
Differential Revision: https://reviews.llvm.org/D30372
llvm-svn: 297250
2017-03-08 09:02:16 +08:00
|
|
|
ToolChains/Clang.cpp
|
|
|
|
ToolChains/CloudABI.cpp
|
|
|
|
ToolChains/CommonArgs.cpp
|
|
|
|
ToolChains/Contiki.cpp
|
|
|
|
ToolChains/CrossWindows.cpp
|
|
|
|
ToolChains/Cuda.cpp
|
|
|
|
ToolChains/Darwin.cpp
|
|
|
|
ToolChains/DragonFly.cpp
|
|
|
|
ToolChains/FreeBSD.cpp
|
|
|
|
ToolChains/Fuchsia.cpp
|
|
|
|
ToolChains/Gnu.cpp
|
|
|
|
ToolChains/Haiku.cpp
|
|
|
|
ToolChains/Hexagon.cpp
|
|
|
|
ToolChains/Linux.cpp
|
2017-03-09 06:36:04 +08:00
|
|
|
ToolChains/MipsLinux.cpp
|
[Driver] Consolidate tools and toolchains by target platform. (NFC)
Summary:
(This is a move-only refactoring patch. There are no functionality changes.)
This patch splits apart the Clang driver's tool and toolchain implementation
files. Each target platform toolchain is moved to its own file, along with the
closest-related tools. Each target platform toolchain has separate headers and
implementation files, so the hierarchy of classes is unchanged.
There are some remaining shared free functions, mostly from Tools.cpp. Several
of these move to their own architecture-specific files, similar to r296056. Some
of them are only used by a single target platform; since the tools and
toolchains are now together, some helpers now live in a platform-specific file.
The balance are helpers related to manipulating argument lists, so they are now
in a new file pair, CommonArgs.h and .cpp.
I've tried to cluster the code logically, which is fairly straightforward for
most of the target platforms and shared architectures. I think I've made
reasonable choices for these, as well as the various shared helpers; but of
course, I'm happy to hear feedback in the review.
There are some particular things I don't like about this patch, but haven't been
able to find a better overall solution. The first is the proliferation of files:
there are several files that are tiny because the toolchain is not very
different from its base (usually the Gnu tools/toolchain). I think this is
mostly a reflection of the true complexity, though, so it may not be "fixable"
in any reasonable sense. The second thing I don't like are the includes like
"../Something.h". I've avoided this largely by clustering into the current file
structure. However, a few of these includes remain, and in those cases it
doesn't make sense to me to sink an existing file any deeper.
Reviewers: rsmith, mehdi_amini, compnerd, rnk, javed.absar
Subscribers: emaste, jfb, danalbert, srhines, dschuff, jyknight, nemanjai, nhaehnle, mgorny, cfe-commits
Differential Revision: https://reviews.llvm.org/D30372
llvm-svn: 297250
2017-03-08 09:02:16 +08:00
|
|
|
ToolChains/MinGW.cpp
|
|
|
|
ToolChains/Minix.cpp
|
|
|
|
ToolChains/MSVC.cpp
|
|
|
|
ToolChains/Myriad.cpp
|
|
|
|
ToolChains/NaCl.cpp
|
|
|
|
ToolChains/NetBSD.cpp
|
|
|
|
ToolChains/OpenBSD.cpp
|
|
|
|
ToolChains/PS4CPU.cpp
|
|
|
|
ToolChains/Solaris.cpp
|
|
|
|
ToolChains/TCE.cpp
|
|
|
|
ToolChains/WebAssembly.cpp
|
|
|
|
ToolChains/XCore.cpp
|
2009-03-13 19:37:39 +08:00
|
|
|
Types.cpp
|
2017-03-30 08:29:36 +08:00
|
|
|
XRayArgs.cpp
|
2009-06-18 23:05:47 +08:00
|
|
|
|
2014-02-21 15:59:59 +08:00
|
|
|
DEPENDS
|
2012-06-21 09:30:21 +08:00
|
|
|
ClangDriverOptions
|
2011-11-05 08:46:46 +08:00
|
|
|
|
2014-02-26 14:41:29 +08:00
|
|
|
LINK_LIBS
|
2012-06-21 09:30:21 +08:00
|
|
|
clangBasic
|
2016-05-14 16:12:37 +08:00
|
|
|
${system_libs}
|
2012-06-21 09:30:21 +08:00
|
|
|
)
|