Go to file
Zachary Turner 024323cb12 [LLD COFF/PDB] Incrementally update the build id.
Previously, our algorithm to compute a build id involved hashing the
executable and storing that as the GUID in the CV Debug Record chunk,
and setting the age to 1.

This breaks down in one very obvious case: a user adds some newlines to
a file, rebuilds, but changes nothing else. This causes new line
information and new file checksums to get written to the PDB, meaning
that the debug info is different, but the generated code would be the
same, so we would write the same build over again with an age of 1.

Anyone using a symbol cache would have a problem now, because the
debugger would open the executable, look at the age and guid, find a
matching PDB in the symbol cache and then load it. It would never copy
the new PDB to the symbol cache.

This patch implements the canonical Windows algorithm for updating
a build id, which is to check the existing executable first, and
re-use an existing GUID while bumping the age if it already
exists.

Differential Revision: https://reviews.llvm.org/D36758

llvm-svn: 310961
2017-08-15 21:31:41 +00:00
clang Revert "Revert "Fix LLVMgold plugin name/path for non-Linux."" 2017-08-15 21:31:17 +00:00
clang-tools-extra [clang-tidy] Add a close-on-exec check on inotify_init1() in Android module. 2017-08-14 17:45:48 +00:00
compiler-rt [CMake compiler-rt] NFC: Minor CMake refactoring. 2017-08-15 18:38:14 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc configure.py: Make python3 friendly 2017-08-02 15:00:59 +00:00
libcxx [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
libcxxabi [demangler] Fix some more -Wshadow warnings I missed in r310535 2017-08-10 02:48:13 +00:00
libunwind [CMake] Allow overriding lib dir suffix independently from LLVM 2017-08-08 00:37:59 +00:00
lld [LLD COFF/PDB] Incrementally update the build id. 2017-08-15 21:31:41 +00:00
lldb Update NSArray/NSDictionary/NSSet formatters to handle new 2017-08-15 21:23:14 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm Revert changes in r310953 for llvm-symbolizer.test. The change causes a test failure. 2017-08-15 21:02:17 +00:00
openmp [OpenMP] libomptarget: move debugging dumps under control of env var LIBOMPTARGET_DEBUG 2017-08-14 15:09:59 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [Polly] [GPUJIT] Set min size to 1 on CUDA allocation calls. [NFC] 2017-08-15 18:21:38 +00:00