[lld] r178798 - [Driver] Fix symlinked universal driver behavior and add a test.
Nick Kledzik
kledzik at apple.com
Thu Apr 4 19:42:20 PDT 2013
On Apr 4, 2013, at 3:04 PM, Michael J. Spencer wrote:
>
> - // Check if flavor is at end of program name (e.g. "lld-gnu");
> - SmallVector<StringRef, 3> components;
> - llvm::SplitString(args[0], components, "-");
> - Flavor flavor = strToFlavor(components.back());
> -
> + Flavor flavor =
> + strToFlavor(parseProgramName(llvm::sys::path::stem(args[0]))._flavor);
> +
Can you add (back) a comment showing valid (and invalid) compound names and which part can be the flavor.
-Nick
More information about the llvm-commits
mailing list