HomePhabricator

Add an explicit API to read the Xcode SDK DWARF attribute from compile units

Authored by aprantl on May 1 2020, 3:50 PM.

Description

Add an explicit API to read the Xcode SDK DWARF attribute from compile units

When debugging from a SymbolMap the creation of CompileUnits for the
individual object files is so lazy that RegisterXcodeSDK() is not
invoked at all before the Swift TypeSystem wants to read it. This
patch fixes this by introducing an explicit
SymbolFile::ParseXcodeSDK() call that can be invoked deterministically
before the result is required.

rdar://problem/62532151+62326862

https://reviews.llvm.org/D79273

Details

Committed
aprantlMay 6 2020, 1:16 PM
Parents
rG5e3ab8f2299f: Revert "[libc++] [test] Generate static_test_env on the fly"
Branches
Unknown
Tags
Unknown