diff options
author | Vedant Kumar <vsk@apple.com> | 2016-02-26 02:49:41 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-02-26 02:49:41 +0000 |
commit | b850251d3e7110e050610e8652319db86ffeec65 (patch) | |
tree | 18d81124d4f68f20487fc93ab8e703d792be12f0 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 7553e95098770c1af646a3fb4f1e89cddf2f24dd (diff) | |
download | llvm-b850251d3e7110e050610e8652319db86ffeec65.zip llvm-b850251d3e7110e050610e8652319db86ffeec65.tar.gz llvm-b850251d3e7110e050610e8652319db86ffeec65.tar.bz2 |
[profile] Compute number of data entries correctly
Compiler-rt miscalculates the number of entries in the __llvm_prf_data section
on i386 Darwin. This results in a number of test failures (which we started
catching after r261344).
The fix we attempted earlier is insufficient (r261683). It caused some tests to
start passing again, but that hid the fact that we drop some data entries.
This patch should fix the real problem. It fixes the way we compute DataSize by
taking into account the way the Darwin linker lays out __llvm_prf_data.
Differential Revision: http://reviews.llvm.org/D17623
llvm-svn: 261957
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions