]> granicus.if.org Git - llvm/commit
[Tools] Mark output of tools as text if it is text
authorKai Nacke <kai.nacke@redstar.de>
Tue, 8 Oct 2019 08:21:20 +0000 (08:21 +0000)
committerKai Nacke <kai.nacke@redstar.de>
Tue, 8 Oct 2019 08:21:20 +0000 (08:21 +0000)
commitc7712cd897d63f37f68863566ce01539cd21fbc1
tree8bc5f2adb9d8af184d3e6c3ace43a3288b0e3bd6
parent9332625c96fc2b0e49791ac3ff579d82b86b1072
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374024 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/RemarkStreamer.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
tools/llvm-mc/llvm-mc.cpp
tools/llvm-mca/llvm-mca.cpp
tools/opt/opt.cpp