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
Showing
- lib/CodeGen/CGDebugInfo.cpp 4 additions, 1 deletionlib/CodeGen/CGDebugInfo.cpp
- lib/CodeGen/ObjectFilePCHContainerOperations.cpp 5 additions, 1 deletionlib/CodeGen/ObjectFilePCHContainerOperations.cpp
- test/Modules/ExtDebugInfo.cpp 4 additions, 0 deletionstest/Modules/ExtDebugInfo.cpp
- test/Modules/ModuleDebugInfo.cpp 1 addition, 2 deletionstest/Modules/ModuleDebugInfo.cpp
Loading
Please register or sign in to comment