mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 05:46:07 +00:00

Introduce a new "export_as" directive for top-level modules, which indicates that the current module is a "private" module whose symbols will eventually be exported through the named "public" module. This is in support of a common pattern in the Darwin ecosystem where a single public framework is constructed of several private frameworks, with (currently) header duplication and some support from the linker. Addresses rdar://problem/34438420. llvm-svn: 313316
10 lines
111 B
Plaintext
10 lines
111 B
Plaintext
module PrivateFoo {
|
|
export_as Foo
|
|
export_as Bar
|
|
export_as Bar
|
|
|
|
module Sub {
|
|
export_as Wibble
|
|
}
|
|
}
|