From 909d12389395c7fd5758c60763494c2e7016ae1b Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 11 Dec 2017 17:52:28 +0000 Subject: [PATCH] Change function type more LLVM-ish. Also fix variable naming style. llvm-svn: 320393 --- lld/wasm/Driver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp index a0aec17dcbfe..983d8e9f55d7 100644 --- a/lld/wasm/Driver.cpp +++ b/lld/wasm/Driver.cpp @@ -202,10 +202,10 @@ void LinkerDriver::createFiles(opt::InputArgList &Args) { 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); if (!Arg) - return def; + return Default; if (Arg->getOption().getID() == OPT_no_entry) return ""; return Arg->getValue();