diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-14 22:54:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-14 22:54:16 +0000 |
commit | 642a22165a466d553a9bc3b54af47c537fffa648 (patch) | |
tree | 7fc0dbc25a7b079f167a9106e5566a1efb30acdd /llvm/tools/llvm-as/llvm-as.cpp | |
parent | 50bd5a2dc6fbfba50bd5250ac28f223cf0becd1a (diff) | |
download | bcm5719-llvm-642a22165a466d553a9bc3b54af47c537fffa648.tar.gz bcm5719-llvm-642a22165a466d553a9bc3b54af47c537fffa648.zip |
Use the ability to pwrite to simplify the ELF writer.
Now we don't have to do 2 synchronized passes to compute offsets and then
write the file.
This also includes a fix for the corner case of seeking in /dev/null. It
is not an error, but on some systems (Linux) the returned offset is
always 0. An error is signaled by returning -1. This is checked by
the existing tests now that "clang -o /dev/null ..." seeks.
llvm-svn: 234952
Diffstat (limited to 'llvm/tools/llvm-as/llvm-as.cpp')
0 files changed, 0 insertions, 0 deletions