[lld] r249023 - ELF2: Define Driver::addFile() as a one-stop place to open a file.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 09:09:48 PDT 2015


Awesome!

> +    StringRef Path = Arg->getValue();
> +    if (Arg->getOption().getID() == OPT_l) {
> +      addFile(searchLibrary(Path));
> +    } else {
> +      addFile(Path);
>      }

You don't need the {} now :-)

Thanks,
Rafael


More information about the llvm-commits mailing list