summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-01-15 00:41:21 +0000
committerRui Ueyama <ruiu@google.com>2017-01-15 00:41:21 +0000
commit543731f96a4b202ece718ef9e703c7a813114f15 (patch)
tree3d143cd1fd7d4600b1fa5e9684de3c24e4e18972 /llvm/lib/Transforms
parentdcd32937dc396d6da334fbdcc930e268d12a28d4 (diff)
downloadbcm5719-llvm-543731f96a4b202ece718ef9e703c7a813114f15.tar.gz
bcm5719-llvm-543731f96a4b202ece718ef9e703c7a813114f15.zip
Directly write to a -Map file.
Previous code had a bug that if the program exits with an assert() or fail() before the control reaches end of writeMapFile(), it leaves a temporary file, because FileRemover's dtor isn't called in that case. I could fix that by removeFileOnSignal() and other functions, but I think we can simply write to the result file directly. I think that is straightforward and easy to understand. Additionally, that allows something like `-Map /dev/null` or a bash hack such as `-Map >(grep symbol-im-looking-for)`. Previously, that kind of things didn't work. Differential Revision: https://reviews.llvm.org/D28714 llvm-svn: 292041
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud