This is an archive of the discontinued LLVM Phabricator instance.

Debug Info: Store the SDK in the DICompileUnit.
ClosedPublic

Authored by aprantl on Mar 12 2020, 2:24 PM.

Details

Summary

This is another intermediate step for PR44213 (https://bugs.llvm.org/show_bug.cgi?id=44213).

This stores the SDK *name* in the debug info, to make it possible to -fdebug-prefix-map-replace the sysroot with a recognizable string and allowing the debugger to find a fitting SDK relative to itself, not the machine the executable was compiled on.

rdar://problem/51645582

Diff Detail

Event Timeline

aprantl created this revision.Mar 12 2020, 2:24 PM

Looks good to me.

davide accepted this revision.Mar 13 2020, 10:43 AM

LGTM

This revision is now accepted and ready to land.Mar 13 2020, 10:43 AM
clang/lib/CodeGen/CGDebugInfo.cpp