[lld-macho] Support -add_ast_path
authorJez Ng <jezng@fb.com>
Thu, 8 Apr 2021 18:12:20 +0000 (14:12 -0400)
committerJez Ng <jezng@fb.com>
Thu, 8 Apr 2021 18:12:55 +0000 (14:12 -0400)
commitc23b92acd0654bd63942fd70d39c7955354ba3f6
tree62d72bf6f8d15dca6827597631f3996a062b2f0a
parentd01bff8cbdc98fb8751f7bf10af19b47ae5c445d
[lld-macho] Support -add_ast_path

Swift builds seem to use it. All it requires is emitting the
corresponding paths as STABS.

Fixes llvm.org/PR49385.

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D100076
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/MachO/SyntheticSections.cpp
lld/test/MachO/add-ast-path.s [new file with mode: 0644]