mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Allow one to separately specify the ABI name of a module.
Introduce a new compiler flag `-module-abi-name <name>` that uses the given name as the ABI name for the module (rather than the module's name in source code). The ABI name impacts name mangling and metadata.
This commit is contained in:
@@ -433,6 +433,11 @@ public:
|
||||
return Core->Name;
|
||||
}
|
||||
|
||||
/// The ABI name of the module.
|
||||
StringRef getModuleABIName() const {
|
||||
return Core->ModuleABIName;
|
||||
}
|
||||
|
||||
/// The Swift compatibility version in use when this module was built.
|
||||
const version::Version &getCompatibilityVersion() const {
|
||||
return Core->CompatibilityVersion;
|
||||
|
||||
Reference in New Issue
Block a user