[PATCH] Use object file specific section type for initial text section

Nico Rieck nico.rieck at gmail.com
Sat Apr 13 20:30:49 PDT 2013


Asm-/PureStreamer used a Mach-O text section for all object types. But we can instead get a text section with proper type from the available object file info and fix the output.

I'm pretty sure that all those CHECK lines referring to that default Mach-O text section are superfluous, so I just removed them.

http://llvm-reviews.chandlerc.com/D668

Files:
  lib/MC/MCAsmStreamer.cpp
  lib/MC/MCPureStreamer.cpp
  test/MC/Disassembler/Mips/mips32.txt
  test/MC/Disassembler/Mips/mips32_le.txt
  test/MC/Disassembler/Mips/mips32r2.txt
  test/MC/Disassembler/Mips/mips32r2_le.txt
  test/MC/Disassembler/Mips/mips64.txt
  test/MC/Disassembler/Mips/mips64_le.txt
  test/MC/Disassembler/Mips/mips64r2.txt
  test/MC/Disassembler/Mips/mips64r2_le.txt
  test/MC/Disassembler/XCore/xcore.txt
  test/MC/Mips/mips-alu-instructions.s
  test/MC/Mips/mips-expansions.s
  test/MC/Mips/mips-fpu-instructions.s
  test/MC/Mips/mips-jump-instructions.s
  test/MC/Mips/mips-memory-instructions.s
  test/MC/Mips/mips-relocations.s
  test/MC/Mips/mips64-alu-instructions.s
  test/MC/Mips/nabi-regs.s
  test/MC/Mips/set-at-directive.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D668.1.patch
Type: text/x-patch
Size: 10624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130413/41c6eda2/attachment.bin>


More information about the llvm-commits mailing list