aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Unix
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-26 22:13:57 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-26 22:13:57 +0000
commit496cf2308acf4bb719a015517f27dff10db7de49 (patch)
tree7a34bdf0b66b61c00721fd3b1ffa56d9cc82bfc5 /lib/Support/Unix
parent107c578126c477ad330bb79defb10ef14eb7dad3 (diff)
downloadexternal_llvm-496cf2308acf4bb719a015517f27dff10db7de49.zip
external_llvm-496cf2308acf4bb719a015517f27dff10db7de49.tar.gz
external_llvm-496cf2308acf4bb719a015517f27dff10db7de49.tar.bz2
Revert "[PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc."
This reverts commit r187248. It broke many bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix')
-rw-r--r--lib/Support/Unix/Memory.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Unix/Memory.inc b/lib/Support/Unix/Memory.inc
index 73f586f..58fda42 100644
--- a/lib/Support/Unix/Memory.inc
+++ b/lib/Support/Unix/Memory.inc
@@ -310,14 +310,14 @@ void Memory::InvalidateInstructionCache(const void *Addr,
// icache invalidation for PPC and ARM.
#if defined(__APPLE__)
-# if (defined(__POWERPC__) || defined (__ppc__) || defined (__powerpc__) \
+# if (defined(__POWERPC__) || defined (__ppc__) || \
defined(_POWER) || defined(_ARCH_PPC)) || defined(__arm__)
sys_icache_invalidate(const_cast<void *>(Addr), Len);
# endif
#else
-# if (defined(__POWERPC__) || defined (__ppc__) || defined (__powerpc__) || \
+# if (defined(__POWERPC__) || defined (__ppc__) || \
defined(_POWER) || defined(_ARCH_PPC)) && defined(__GNUC__)
const size_t LineSize = 32;