Rename a function to follow the LLVM coding style.

llvm-svn: 340716
This commit is contained in:
Rui Ueyama 2018-08-27 06:18:10 +00:00
parent c4b0061c05
commit 41831204c7
6 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ Configuration *Config;
LinkerDriver *Driver;
bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) {
errorHandler().LogName = args::FilenameWithoutExe(Args[0]);
errorHandler().LogName = args::getFilenameWithoutExe(Args[0]);
errorHandler().ErrorOS = &Diag;
errorHandler().ColorDiagnostics = Diag.has_colors();
errorHandler().ErrorLimitExceededMsg =

View File

@ -66,7 +66,7 @@ std::vector<StringRef> lld::args::getLines(MemoryBufferRef MB) {
return Ret;
}
StringRef lld::args::FilenameWithoutExe(StringRef Path) {
StringRef lld::args::getFilenameWithoutExe(StringRef Path) {
if (Path.endswith_lower(".exe"))
return sys::path::stem(Path);
return sys::path::filename(Path);

View File

@ -74,7 +74,7 @@ static void setConfigs(opt::InputArgList &Args);
bool elf::link(ArrayRef<const char *> Args, bool CanExitEarly,
raw_ostream &Error) {
errorHandler().LogName = args::FilenameWithoutExe(Args[0]);
errorHandler().LogName = args::getFilenameWithoutExe(Args[0]);
errorHandler().ErrorLimitExceededMsg =
"too many errors emitted, stopping now (use "
"-error-limit=0 to see all errors)";

View File

@ -30,7 +30,7 @@ uint64_t getZOptionValue(llvm::opt::InputArgList &Args, int Id, StringRef Key,
std::vector<StringRef> getLines(MemoryBufferRef MB);
StringRef FilenameWithoutExe(StringRef Path);
StringRef getFilenameWithoutExe(StringRef Path);
} // namespace args
} // namespace lld

View File

@ -1143,7 +1143,7 @@ static void createFiles(MachOLinkingContext &ctx, bool Implicit) {
/// This is where the link is actually performed.
bool link(llvm::ArrayRef<const char *> args, bool CanExitEarly,
raw_ostream &Error) {
errorHandler().LogName = args::FilenameWithoutExe(args[0]);
errorHandler().LogName = args::getFilenameWithoutExe(args[0]);
errorHandler().ErrorLimitExceededMsg =
"too many errors emitted, stopping now (use "
"'-error-limit 0' to see all errors)";

View File

@ -78,7 +78,7 @@ private:
bool lld::wasm::link(ArrayRef<const char *> Args, bool CanExitEarly,
raw_ostream &Error) {
errorHandler().LogName = args::FilenameWithoutExe(Args[0]);
errorHandler().LogName = args::getFilenameWithoutExe(Args[0]);
errorHandler().ErrorOS = &Error;
errorHandler().ColorDiagnostics = Error.has_colors();
errorHandler().ErrorLimitExceededMsg =