Index: lib/Support/Unix/Memory.inc |
diff --git a/lib/Support/Unix/Memory.inc b/lib/Support/Unix/Memory.inc |
index c9d89a82474dece46a4a2ffd80e958da183343a0..c61a8e852d8d399a8ace2e0c65a30e5e8708ad13 100644 |
--- a/lib/Support/Unix/Memory.inc |
+++ b/lib/Support/Unix/Memory.inc |
@@ -333,6 +333,10 @@ void Memory::InvalidateInstructionCache(const void *Addr, |
for (intptr_t Line = StartLine; Line < EndLine; Line += LineSize) |
asm volatile("icbi 0, %0" : : "r"(Line)); |
asm volatile("isync"); |
+ // @LOCALMOD-START |
+# elif defined(__native_client__) |
+ exit(1); // Native Client disallows JIT-compilation. |
+ // @LOCALMOD-END |
# elif (defined(__arm__) || defined(__aarch64__)) && defined(__GNUC__) |
// FIXME: Can we safely always call this for __GNUC__ everywhere? |
const char *Start = static_cast<const char *>(Addr); |