]> granicus.if.org Git - llvm/commit
[RISCV] Bugfix createRISCVELFObjectWriter
authorAlex Bradbury <asb@lowrisc.org>
Wed, 18 Oct 2017 16:11:31 +0000 (16:11 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Wed, 18 Oct 2017 16:11:31 +0000 (16:11 +0000)
commitafea6f4cd3a6319cb38d6787376b392f9e0e23bb
tree7fe3c583ca62f2bdf63ff756c6e3d658b8bb0b47
parentad73a3da684f47c3f7f8d3412155c0941c9a939b
[RISCV] Bugfix createRISCVELFObjectWriter

r315275 set the IsLittleEndian parameter incorrectly. This patch corrects
this, and adds a test to ensure such mistakes will be caught in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316091 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
test/MC/RISCV/elf-header.s [new file with mode: 0644]