[lld] r179617 - Distinguish between unsupported and unrecognised flavours.
Andy Gibbs
andyg1001 at hotmail.co.uk
Tue Apr 16 12:24:13 PDT 2013
Author: andyg
Date: Tue Apr 16 14:24:13 2013
New Revision: 179617
URL: http://llvm.org/viewvc/llvm-project?rev=179617&view=rev
Log:
Distinguish between unsupported and unrecognised flavours.
Suggested by Nick Kledzik in reference to r179590.
Modified:
lld/trunk/lib/Driver/UniversalDriver.cpp
Modified: lld/trunk/lib/Driver/UniversalDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/UniversalDriver.cpp?rev=179617&r1=179616&r2=179617&view=diff
==============================================================================
--- lld/trunk/lib/Driver/UniversalDriver.cpp (original)
+++ lld/trunk/lib/Driver/UniversalDriver.cpp Tue Apr 16 14:24:13 2013
@@ -125,10 +125,10 @@ bool UniversalDriver::link(int argc, con
case Flavor::core:
return CoreDriver::link(args.size(), args.data(), diagnostics);
case Flavor::win_link:
- break;
+ llvm_unreachable("Unsupported flavor");
case Flavor::invalid:
return true;
}
- llvm_unreachable("Unsupported flavor");
+ llvm_unreachable("Unrecognised flavor");
}
} // end namespace lld
More information about the llvm-commits
mailing list