mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #62185 from xymus/improve-rmodule-loading
Improve `-Rmodule-loading` to show both the path to the source and to the cached file actually loaded
This commit is contained in:
@@ -836,6 +836,17 @@ public:
|
||||
/// string if this is not applicable.
|
||||
StringRef getModuleFilename() const;
|
||||
|
||||
/// Get the path to the file defining this module, what we consider the
|
||||
/// source of truth about the module. Usually a swiftinterface file for a
|
||||
/// resilient module, a swiftmodule for a non-resilient module, or the
|
||||
/// modulemap for a clang module. Returns an empty string if not applicable.
|
||||
StringRef getModuleSourceFilename() const;
|
||||
|
||||
/// Get the path to the file loaded by the compiler. Usually the binary
|
||||
/// swiftmodule file or a pcm in the cache. Returns an empty string if not
|
||||
/// applicable.
|
||||
StringRef getModuleLoadedFilename() const;
|
||||
|
||||
/// \returns true if this module is the "swift" standard library module.
|
||||
bool isStdlibModule() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user