OSDN Git Service

[tools] [llvm-nm] Default to reading from stdin not a.out
authorAlex Brachet <alexbrachetmialot@gmail.com>
Fri, 12 Jul 2019 10:20:01 +0000 (10:20 +0000)
committerAlex Brachet <alexbrachetmialot@gmail.com>
Fri, 12 Jul 2019 10:20:01 +0000 (10:20 +0000)
commit94d01e5dc0049caec8e9722f9b7472a370bcf06c
treeba210d5ea99bd715a9a8237085ccf1e350078f0f
parent24d43bb78f73945763c7c8edfe9b6cfbf130df86
[tools] [llvm-nm] Default to reading from stdin not a.out

Summary: This moves away from defaulting to a.out and uses stdin only if stdin has a file redirected to it. This has been discussed on the llvm-dev mailing list [[ https://lists.llvm.org/pipermail/llvm-dev/2019-July/133642.html | here ]].

Reviewers: jhenderson, rupprecht, MaskRay, chrisjackson

Reviewed By: jhenderson, MaskRay

Subscribers: llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365889 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/llvm-nm.rst
test/tools/llvm-nm/stdin.test [new file with mode: 0644]
tools/llvm-nm/llvm-nm.cpp