[PPC] Fix platform definitions when compiling FreeBSD powerpc64 as LE
authorDimitry Andric <dimitry@andric.com>
Sat, 29 Aug 2020 10:02:51 +0000 (12:02 +0200)
committerDimitry Andric <dimitry@andric.com>
Sat, 29 Aug 2020 10:03:20 +0000 (12:03 +0200)
commitfc2dac4116df62c25396b15ec9730f67a0b1aac7
tree951e0a4e4e16ffb0a1d6558294c75d640fc8108a
parent57a26bb7b43556f255be1bf005e7acd8e2f6eae2
[PPC] Fix platform definitions when compiling FreeBSD powerpc64 as LE

As a prerequisite to doing experimental buids of pieces of FreeBSD PowerPC64 as little-endian, allow actually targeting it.

This is needed so basic platform definitions are pulled in. Without it, the compiler will only run freestanding.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D73425
clang/lib/Basic/Targets.cpp
clang/test/CodeGen/target-data.c
clang/test/Driver/freebsd.c
clang/test/Driver/ppc-abi.c
clang/test/Preprocessor/init-ppc64.c