aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-09 05:14:23 +0000
committerChris Lattner <sabre@nondot.org>2008-07-09 05:14:23 +0000
commita660f4bb07e5a8cf446b00c498c8c4c1ec28a447 (patch)
tree2594b58ba6928d273d01ca864bbacf322aacc040 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent304deea9e6dc94ba6c4b8ea93322c0f71cf8a385 (diff)
downloadllvm-a660f4bb07e5a8cf446b00c498c8c4c1ec28a447.zip
llvm-a660f4bb07e5a8cf446b00c498c8c4c1ec28a447.tar.gz
llvm-a660f4bb07e5a8cf446b00c498c8c4c1ec28a447.tar.bz2
Add a little wrapper header that is put around bc files when emitting
bc files for modules with a target triple that indicates they are for darwin. The reader unconditionally handles this, and the writer could turn this on for more targets if we care. This change has two benefits for darwin: 1) it allows us to encode the cpu type of the file in an easy to read place that doesn't require decoding the bc file. 2) it works around a bug (IMO) in darwin's AR where it is incapable of handling files that are not a multiple of 8 bytes long. BC files are only guaranteed to be multiples of 4 bytes long. llvm-svn: 53275
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions