HomePhabricator

[Tools] Mark output of tools as text if it is text

Authored by Kai on Oct 8 2019, 1:21 AM.

Description

[Tools] Mark output of tools as text if it is text

Several LLVM tools write text files/streams without using OF_Text.
This can cause problems on platforms which distinguish between
text and binary output. This PR adds the OF_Text flag for the
following tools:

  • llvm-dis
  • llvm-dwarfdump
  • llvm-mca
  • llvm-mc (assembler files only)
  • opt (assembler files only)
  • RemarkStreamer (used e.g. by opt)

Reviewers: rnk, vivekvpandya, Bigcheese, andreadb

Differential Revision: https://reviews.llvm.org/D67696

llvm-svn: 374024

Details

Committed
KaiOct 8 2019, 1:21 AM
Differential Revision
D67696: [tools] Mark output of tools as text if it is really text
Parents
rGd2e9dd3877e9: Use /dev/null for tests that we do not need outputs
Branches
Unknown
Tags
Unknown