mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Import error now mentions the target, not the arch
This commit is contained in:
@@ -590,8 +590,8 @@ ERROR(cannot_return_value_from_void_func,none,
|
||||
|
||||
ERROR(sema_no_import,Fatal,
|
||||
"no such module '%0'", (StringRef))
|
||||
ERROR(sema_no_import_arch,Fatal,
|
||||
"could not find module '%0' for architecture '%1'; "
|
||||
ERROR(sema_no_import_target,Fatal,
|
||||
"could not find module '%0' for target '%1'; "
|
||||
"found: %2", (StringRef, StringRef, StringRef))
|
||||
ERROR(sema_no_import_repl,none,
|
||||
"no such module '%0'", (StringRef))
|
||||
|
||||
@@ -68,10 +68,10 @@ protected:
|
||||
/// to list the architectures that \e are present.
|
||||
///
|
||||
/// \returns true if an error diagnostic was emitted
|
||||
virtual bool maybeDiagnoseArchitectureMismatch(SourceLoc sourceLocation,
|
||||
StringRef moduleName,
|
||||
StringRef archName,
|
||||
StringRef directoryPath) {
|
||||
virtual bool maybeDiagnoseTargetMismatch(SourceLoc sourceLocation,
|
||||
StringRef moduleName,
|
||||
StringRef archName,
|
||||
StringRef directoryPath) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -139,10 +139,10 @@ class SerializedModuleLoader : public SerializedModuleLoaderBase {
|
||||
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
|
||||
std::unique_ptr<llvm::MemoryBuffer> *ModuleDocBuffer) override;
|
||||
|
||||
bool maybeDiagnoseArchitectureMismatch(SourceLoc sourceLocation,
|
||||
StringRef moduleName,
|
||||
StringRef archName,
|
||||
StringRef directoryPath) override;
|
||||
bool maybeDiagnoseTargetMismatch(SourceLoc sourceLocation,
|
||||
StringRef moduleName,
|
||||
StringRef archName,
|
||||
StringRef directoryPath) override;
|
||||
|
||||
public:
|
||||
virtual ~SerializedModuleLoader();
|
||||
|
||||
Reference in New Issue
Block a user