OSDN Git Service

Subzero: Fix "make -f Makefile.standalone MINIMAL=1 check".
authorJim Stichnoth <stichnot@chromium.org>
Mon, 22 Jun 2015 20:04:10 +0000 (13:04 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Mon, 22 Jun 2015 20:04:10 +0000 (13:04 -0700)
commitc8799688d288c9acd71f0b4f193f9b1beac751aa
tree207c63cecb2d7e70d662b0e398ee507363f78fa2
parent1bec8bcd64da0cd4855a357d740d3ad45bbef3b9
Subzero: Fix "make -f Makefile.standalone MINIMAL=1 check".

Some recent ARM changes turned out to break the lit tests for the MINIMAL build.  Two main issues:

1. ARM tests are currently asm-only, so allow_dump needs to be required.

2. GlobalContext::emitFileHeader() needs to return gracefully instead of calling report_fatal_error(), to allow error tests to produce the right error output.

BUG= none
R=kschimpf@google.com

Review URL: https://codereview.chromium.org/1202563002
12 files changed:
src/IceGlobalContext.cpp
tests_lit/llvm2ice_tests/64bit.pnacl.ll
tests_lit/llvm2ice_tests/alloc.ll
tests_lit/llvm2ice_tests/arith.ll
tests_lit/llvm2ice_tests/branch-opt.ll
tests_lit/llvm2ice_tests/callindirect.pnacl.ll
tests_lit/llvm2ice_tests/convert.ll
tests_lit/llvm2ice_tests/function_aligned.ll
tests_lit/llvm2ice_tests/int-arg.ll
tests_lit/llvm2ice_tests/return_immediates.ll
tests_lit/llvm2ice_tests/shift.ll
tests_lit/llvm2ice_tests/test_i1.ll