compiler: document Target.little_endian

This commit is contained in:
Sebastien Bourdeauducq 2018-12-02 19:07:18 +08:00
parent 981a77834a
commit 421834fa3e
1 changed files with 4 additions and 0 deletions

View File

@ -75,11 +75,15 @@ class Target:
:var print_function: (string) :var print_function: (string)
Name of a formatted print functions (with the signature of ``printf``) Name of a formatted print functions (with the signature of ``printf``)
provided by the target, e.g. ``"printf"``. provided by the target, e.g. ``"printf"``.
:var little_endian: (boolean)
Whether the code will be executed on a little-endian machine. This cannot be always
determined from data_layout due to JIT.
""" """
triple = "unknown" triple = "unknown"
data_layout = "" data_layout = ""
features = [] features = []
print_function = "printf" print_function = "printf"
little_endian = False
def __init__(self): def __init__(self):