convert argname to StringRef, simplifying LookupOption.