aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-06-22 04:03:28 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-06-22 04:03:28 +0000
commita0d42c86dbcb150c2a7a3d8f2a8500dcfb98a5d1 (patch)
tree90489211acda0912e56f46373144cad67cc04d22 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent32853ad7079311bb1c938d67c7cf25eddbcec912 (diff)
downloadllvm-a0d42c86dbcb150c2a7a3d8f2a8500dcfb98a5d1.zip
llvm-a0d42c86dbcb150c2a7a3d8f2a8500dcfb98a5d1.tar.gz
llvm-a0d42c86dbcb150c2a7a3d8f2a8500dcfb98a5d1.tar.bz2
llvm-ar: be more clever about default format
Try to be more clever about selecting the default format. When an existing archive is used, use the type of the archive to determine the format. When existing members are present, use the first member's format to determine the format to use. If we are creating an empty archive (MRI mode) or are adding non-object members, default to the current behaviour of using the host type due to the lack of a better alternative. This aids in cross-compilation on Darwin to non-Darwin platforms which rely on GNU format archives. llvm-svn: 273373
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions