[bpf] emit jmp fixups in little endian
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>
Fri, 22 May 2015 18:47:33 +0000 (18:47 +0000)
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>
Fri, 22 May 2015 18:47:33 +0000 (18:47 +0000)
commit1fd101c86df4dd321a53bdd80fe5ca106f3f76e2
treed562458fe52d4e90f047d3a01359003117bd7e4d
parent84b1a805bbccf75da3dab605d291e92e1cba5acc
[bpf] emit jmp fixups in little endian

The 'off' field of 'struct bpf_insn' is in cpu-endianness,
since the rest is emitted as little endian, make sure
that 'off' field is little endian as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238038 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp