LLVM API Documentation

Solaris.h
Go to the documentation of this file.
00001 /*===- llvm/Support/Solaris.h ------------------------------------*- C++ -*-===*
00002  *
00003  *                     The LLVM Compiler Infrastructure
00004  *
00005  * This file is distributed under the University of Illinois Open Source
00006  * License. See LICENSE.TXT for details.
00007  *
00008  *===----------------------------------------------------------------------===*
00009  *
00010  * This file contains portability fixes for Solaris hosts.
00011  *
00012  *===----------------------------------------------------------------------===*/
00013 
00014 #ifndef LLVM_SUPPORT_SOLARIS_H
00015 #define LLVM_SUPPORT_SOLARIS_H
00016 
00017 #include <sys/types.h>
00018 #include <sys/regset.h>
00019 
00020 /* Solaris doesn't have endian.h. SPARC is the only supported big-endian ISA. */
00021 #define BIG_ENDIAN 4321
00022 #define LITTLE_ENDIAN 1234
00023 #if defined(__sparc) || defined(__sparc__)
00024 #define BYTE_ORDER BIG_ENDIAN
00025 #else
00026 #define BYTE_ORDER LITTLE_ENDIAN
00027 #endif
00028 
00029 #undef CS
00030 #undef DS
00031 #undef ES
00032 #undef FS
00033 #undef GS
00034 #undef SS
00035 #undef EAX
00036 #undef ECX
00037 #undef EDX
00038 #undef EBX
00039 #undef ESP
00040 #undef EBP
00041 #undef ESI
00042 #undef EDI
00043 #undef EIP
00044 #undef UESP
00045 #undef EFL
00046 #undef ERR
00047 #undef TRAPNO
00048 
00049 #endif