OSDN Git Service

Subzero: Clean up function header emission.
authorJim Stichnoth <stichnot@chromium.org>
Wed, 25 Feb 2015 22:48:43 +0000 (14:48 -0800)
committerJim Stichnoth <stichnot@chromium.org>
Wed, 25 Feb 2015 22:48:43 +0000 (14:48 -0800)
commit729dbd0194c1aa39c41911cd29efeb19c5ea1178
tree295b952af92535a3752704db0d44f10faa0d9c36
parente9079cb8eefe8bf315bb25d9e37c4f347f0dc7f4
Subzero: Clean up function header emission.

1. Don't do anything in Cfg::emitTextHeader() in MINIMAL mode.  (Reduces binary size by 1KB.)  This actually broke a number of lit tests for the MINIMAL build, so "--assemble --disassemble" was changed to "--filetype=obj --disassemble".  This allowed (or required) better precision in checking for data symbols.

1a. For the lit files touched, go ahead and remove "-verbose none" since that will forevermore by the default.

2. Don't emit the ".bundle_align_mode" directive.  This is not
necessary when assembling with the right -triple argument.

BUG= none
R=jvoung@chromium.org, kschimpf@google.com

Review URL: https://codereview.chromium.org/955003002
48 files changed:
src/IceCfg.cpp
src/IceELFObjectWriter.cpp
tests_lit/assembler/x86/immediate_encodings.ll
tests_lit/assembler/x86/jump_encodings.ll
tests_lit/assembler/x86/opcode_register_encodings.ll
tests_lit/assembler/x86/sandboxing.ll
tests_lit/llvm2ice_tests/64bit.pnacl.ll
tests_lit/llvm2ice_tests/8bit.pnacl.ll
tests_lit/llvm2ice_tests/address-mode-opt.ll
tests_lit/llvm2ice_tests/align-spill-locations.ll
tests_lit/llvm2ice_tests/alloc.ll
tests_lit/llvm2ice_tests/bitcast.ll
tests_lit/llvm2ice_tests/bool-opt.ll
tests_lit/llvm2ice_tests/branch-opt.ll
tests_lit/llvm2ice_tests/callindirect.pnacl.ll
tests_lit/llvm2ice_tests/cmp-opt.ll
tests_lit/llvm2ice_tests/convert.ll
tests_lit/llvm2ice_tests/div_legalization.ll
tests_lit/llvm2ice_tests/ebp_args.ll
tests_lit/llvm2ice_tests/elf_function_sections.ll
tests_lit/llvm2ice_tests/elf_nodata.ll
tests_lit/llvm2ice_tests/fp.pnacl.ll
tests_lit/llvm2ice_tests/fpcall.ll
tests_lit/llvm2ice_tests/function_aligned.ll
tests_lit/llvm2ice_tests/ias-multi-reloc.ll
tests_lit/llvm2ice_tests/nacl-atomic-cmpxchg-optimization.ll
tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll
tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll
tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll
tests_lit/llvm2ice_tests/phi.ll
tests_lit/llvm2ice_tests/randomize-regalloc.ll
tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll
tests_lit/llvm2ice_tests/sdiv.ll
tests_lit/llvm2ice_tests/select-opt.ll
tests_lit/llvm2ice_tests/shift.ll
tests_lit/llvm2ice_tests/simple-loop.ll
tests_lit/llvm2ice_tests/switch-opt.ll
tests_lit/llvm2ice_tests/test_i1.ll
tests_lit/llvm2ice_tests/undef.ll
tests_lit/llvm2ice_tests/unreachable.ll
tests_lit/llvm2ice_tests/vector-arg.ll
tests_lit/llvm2ice_tests/vector-arith.ll
tests_lit/llvm2ice_tests/vector-bitcast.ll
tests_lit/llvm2ice_tests/vector-cast.ll
tests_lit/llvm2ice_tests/vector-fcmp.ll
tests_lit/llvm2ice_tests/vector-icmp.ll
tests_lit/llvm2ice_tests/vector-ops.ll
tests_lit/llvm2ice_tests/vector-select.ll