]> granicus.if.org Git - clang/commit
Module Debugging: Use a nonzero DWO id for precompiled headers.
authorAdrian Prantl <aprantl@apple.com>
Fri, 22 Jan 2016 17:43:43 +0000 (17:43 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 22 Jan 2016 17:43:43 +0000 (17:43 +0000)
commita892974a4f1b55ce481c33b0250dbc07a37486c1
tree563e448a80c950c1abf8360d05933a68ff7e13ce
parenta3f4011422a41159591ae6ace0af7031c87f2bdc
Module Debugging: Use a nonzero DWO id for precompiled headers.
PCH files don't have a module signature and LLVM uses a nonzero DWO id as
an indicator for skeleton / module CUs. This change pins the DWO id for PCH
files to a known constant value.
The correct long-term solution here is to implement a module signature
that is an actual dterministic hash (at the moment module signatures are
just random nonzero numbers) and then enable this for PCH files as well.

<rdar://problem/24290667>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258507 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/ObjectFilePCHContainerOperations.cpp
test/Modules/ExtDebugInfo.cpp
test/Modules/ModuleDebugInfo.cpp