[PATCH] D82368: [SystemZ/zos] Define Endian constants for z/OS.

Kai Nacke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 12:53:41 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0663844b064d: [SystemZ/ZOS] Define Endian constants for z/OS. (authored by Kai).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82368/new/

https://reviews.llvm.org/D82368

Files:
  llvm/include/llvm/Support/SwapByteOrder.h


Index: llvm/include/llvm/Support/SwapByteOrder.h
===================================================================
--- llvm/include/llvm/Support/SwapByteOrder.h
+++ llvm/include/llvm/Support/SwapByteOrder.h
@@ -36,6 +36,10 @@
 #else
 #define BYTE_ORDER LITTLE_ENDIAN
 #endif
+#elif defined(__MVS__)
+#define BIG_ENDIAN 4321
+#define LITTLE_ENDIAN 1234
+#define BYTE_ORDER BIG_ENDIAN
 #else
 #if !defined(BYTE_ORDER) && !defined(_WIN32)
 #include <machine/endian.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82368.275648.patch
Type: text/x-patch
Size: 467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200706/4f4a3b18/attachment-0001.bin>


More information about the llvm-commits mailing list