1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/unittests
Bill Schmidt 149eda1b1e [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc.
Both GCC and LLVM will implicitly define __ppc__ and __powerpc__ for
all PowerPC targets, whether 32- or 64-bit.  They will both implicitly
define __ppc64__ and __powerpc64__ for 64-bit PowerPC targets, and not
for 32-bit targets.  We cannot be sure that all other possible
compilers used to compile Clang/LLVM define both __ppc__ and
__powerpc__, for example, so it is best to check for both when relying
on either inside the Clang/LLVM code base.

This patch makes sure we always check for both variants.  In addition,
it fixes one unnecessary check in lib/Target/PowerPC/PPCJITInfo.cpp.
(At least one of __ppc__ and __powerpc__ should always be defined when
compiling for a PowerPC target, no matter which compiler is used, so
testing for them is unnecessary.)

There are some places in the compiler that check for other variants,
like __POWERPC__ and _POWER, and I have left those in place.  There is
no need to add them elsewhere.  This seems to be in Apple-specific
code, and I won't take a chance on breaking it.

There is no intended change in behavior; thus, no test cases are
added.

llvm-svn: 187248
2013-07-26 21:39:15 +00:00
..
ADT [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. 2013-07-26 21:39:15 +00:00
Analysis Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
Bitcode llvm/unittests: Use OwningPtr to fix --vg-leak. 2013-01-23 08:33:13 +00:00
DebugInfo Create a stub for DWARF parser unittests 2013-04-17 08:29:02 +00:00
ExecutionEngine [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. 2013-07-26 21:39:15 +00:00
IR Fix copypaste error in test. 2013-06-28 23:24:10 +00:00
Object Attempt at fixing a mingw bot. 2013-07-13 12:36:30 +00:00
Option Option parsing: allow aliases in groups 2013-07-22 16:18:13 +00:00
Support Don't end a file name with a dot. It looks odd. 2013-07-25 15:00:17 +00:00
Transforms Make SpecialCaseList match full strings, as documented, using anchors. 2013-07-16 17:56:07 +00:00
CMakeLists.txt Make BinaryRef output correctly in case of empty data. 2013-07-09 00:54:46 +00:00
Makefile Add Option unit tests to the make build 2013-07-20 03:04:36 +00:00
Makefile.unittest build/unittests: Fix llvm-config names for gtest libraries, and bring Makefile 2011-12-15 23:35:08 +00:00