Add Hurd target to Clang driver (2/2)
authorKristina Brooks <kristina@nym.hush.com>
Thu, 29 Nov 2018 03:49:14 +0000 (03:49 +0000)
committerKristina Brooks <kristina@nym.hush.com>
Thu, 29 Nov 2018 03:49:14 +0000 (03:49 +0000)
commit77a4adc4f914510bba22b350a65c089db10cc478
treebdfa641e6a9386526f938cb363642829f85a927e
parent69127e1ebd3fa9ed69168a330e7cb6fef7fb331a
Add Hurd target to Clang driver (2/2)

This adds Hurd toolchain support to Clang's driver in addition
to handling translating the triple from Hurd-compatible form to
the actual triple registered in LLVM.

(Phabricator was stripping the empty files from the patch so I
manually created them)

Patch by sthibaul (Samuel Thibault)

Differential Revision: https://reviews.llvm.org/D54379

llvm-svn: 347833
16 files changed:
clang/lib/Basic/Targets.cpp
clang/lib/Basic/Targets/OSTargets.h
clang/lib/Driver/CMakeLists.txt
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/Hurd.cpp [new file with mode: 0644]
clang/lib/Driver/ToolChains/Hurd.h [new file with mode: 0644]
clang/lib/Frontend/InitHeaderSearch.cpp
clang/test/Driver/Inputs/basic_hurd_tree/include/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/basic_hurd_tree/lib/i386-gnu/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/basic_hurd_tree/lib32/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/basic_hurd_tree/usr/include/i386-gnu/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/basic_hurd_tree/usr/lib/i386-gnu/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/basic_hurd_tree/usr/lib32/.keep [new file with mode: 0644]
clang/test/Driver/hurd.c [new file with mode: 0644]