summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-as/llvm-as.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-04-14 22:54:16 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-04-14 22:54:16 +0000
commit642a22165a466d553a9bc3b54af47c537fffa648 (patch)
tree7fc0dbc25a7b079f167a9106e5566a1efb30acdd /llvm/tools/llvm-as/llvm-as.cpp
parent50bd5a2dc6fbfba50bd5250ac28f223cf0becd1a (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud