Change function type more LLVM-ish.

Also fix variable naming style.

llvm-svn: 320393
This commit is contained in:
Rui Ueyama 2017-12-11 17:52:28 +00:00
parent 8c2d90a2f4
commit 909d123893
1 changed files with 2 additions and 2 deletions

View File

@ -202,10 +202,10 @@ void LinkerDriver::createFiles(opt::InputArgList &Args) {
error("no input files"); error("no input files");
} }
static const char *getEntry(opt::InputArgList &Args, const char *def) { static StringRef getEntry(opt::InputArgList &Args, StringRef Default) {
auto *Arg = Args.getLastArg(OPT_entry, OPT_no_entry); auto *Arg = Args.getLastArg(OPT_entry, OPT_no_entry);
if (!Arg) if (!Arg)
return def; return Default;
if (Arg->getOption().getID() == OPT_no_entry) if (Arg->getOption().getID() == OPT_no_entry)
return ""; return "";
return Arg->getValue(); return Arg->getValue();