[lld] r220822 - [mach-o] Turn -single_module error into a warning
Nick Kledzik
kledzik at apple.com
Tue Oct 28 14:11:02 PDT 2014
Author: kledzik
Date: Tue Oct 28 16:11:02 2014
New Revision: 220822
URL: http://llvm.org/viewvc/llvm-project?rev=220822&view=rev
Log:
[mach-o] Turn -single_module error into a warning
To be more compatible with existing darwin linker.
Modified:
lld/trunk/lib/Driver/DarwinLdDriver.cpp
Modified: lld/trunk/lib/Driver/DarwinLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/DarwinLdDriver.cpp?rev=220822&r1=220821&r2=220822&view=diff
==============================================================================
--- lld/trunk/lib/Driver/DarwinLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/DarwinLdDriver.cpp Tue Oct 28 16:11:02 2014
@@ -588,8 +588,8 @@ bool DarwinLdDriver::parse(int argc, con
}
else {
if (ctx.outputMachOType() != llvm::MachO::MH_DYLIB) {
- diagnostics << "-single_module only used when creating a dylib\n";
- return false;
+ diagnostics << "warning: -single_module being ignored. "
+ "It is only for use when producing a dylib\n";
}
}
}
More information about the llvm-commits
mailing list