forked from OSchip/llvm-project
Rename a function to follow the LLVM coding style.
llvm-svn: 340716
This commit is contained in:
parent
c4b0061c05
commit
41831204c7
|
@ -57,7 +57,7 @@ Configuration *Config;
|
||||||
LinkerDriver *Driver;
|
LinkerDriver *Driver;
|
||||||
|
|
||||||
bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) {
|
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().ErrorOS = &Diag;
|
||||||
errorHandler().ColorDiagnostics = Diag.has_colors();
|
errorHandler().ColorDiagnostics = Diag.has_colors();
|
||||||
errorHandler().ErrorLimitExceededMsg =
|
errorHandler().ErrorLimitExceededMsg =
|
||||||
|
|
|
@ -66,7 +66,7 @@ std::vector<StringRef> lld::args::getLines(MemoryBufferRef MB) {
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
StringRef lld::args::FilenameWithoutExe(StringRef Path) {
|
StringRef lld::args::getFilenameWithoutExe(StringRef Path) {
|
||||||
if (Path.endswith_lower(".exe"))
|
if (Path.endswith_lower(".exe"))
|
||||||
return sys::path::stem(Path);
|
return sys::path::stem(Path);
|
||||||
return sys::path::filename(Path);
|
return sys::path::filename(Path);
|
||||||
|
|
|
@ -74,7 +74,7 @@ static void setConfigs(opt::InputArgList &Args);
|
||||||
|
|
||||||
bool elf::link(ArrayRef<const char *> Args, bool CanExitEarly,
|
bool elf::link(ArrayRef<const char *> Args, bool CanExitEarly,
|
||||||
raw_ostream &Error) {
|
raw_ostream &Error) {
|
||||||
errorHandler().LogName = args::FilenameWithoutExe(Args[0]);
|
errorHandler().LogName = args::getFilenameWithoutExe(Args[0]);
|
||||||
errorHandler().ErrorLimitExceededMsg =
|
errorHandler().ErrorLimitExceededMsg =
|
||||||
"too many errors emitted, stopping now (use "
|
"too many errors emitted, stopping now (use "
|
||||||
"-error-limit=0 to see all errors)";
|
"-error-limit=0 to see all errors)";
|
||||||
|
|
|
@ -30,7 +30,7 @@ uint64_t getZOptionValue(llvm::opt::InputArgList &Args, int Id, StringRef Key,
|
||||||
|
|
||||||
std::vector<StringRef> getLines(MemoryBufferRef MB);
|
std::vector<StringRef> getLines(MemoryBufferRef MB);
|
||||||
|
|
||||||
StringRef FilenameWithoutExe(StringRef Path);
|
StringRef getFilenameWithoutExe(StringRef Path);
|
||||||
|
|
||||||
} // namespace args
|
} // namespace args
|
||||||
} // namespace lld
|
} // namespace lld
|
||||||
|
|
|
@ -1143,7 +1143,7 @@ static void createFiles(MachOLinkingContext &ctx, bool Implicit) {
|
||||||
/// This is where the link is actually performed.
|
/// This is where the link is actually performed.
|
||||||
bool link(llvm::ArrayRef<const char *> args, bool CanExitEarly,
|
bool link(llvm::ArrayRef<const char *> args, bool CanExitEarly,
|
||||||
raw_ostream &Error) {
|
raw_ostream &Error) {
|
||||||
errorHandler().LogName = args::FilenameWithoutExe(args[0]);
|
errorHandler().LogName = args::getFilenameWithoutExe(args[0]);
|
||||||
errorHandler().ErrorLimitExceededMsg =
|
errorHandler().ErrorLimitExceededMsg =
|
||||||
"too many errors emitted, stopping now (use "
|
"too many errors emitted, stopping now (use "
|
||||||
"'-error-limit 0' to see all errors)";
|
"'-error-limit 0' to see all errors)";
|
||||||
|
|
|
@ -78,7 +78,7 @@ private:
|
||||||
|
|
||||||
bool lld::wasm::link(ArrayRef<const char *> Args, bool CanExitEarly,
|
bool lld::wasm::link(ArrayRef<const char *> Args, bool CanExitEarly,
|
||||||
raw_ostream &Error) {
|
raw_ostream &Error) {
|
||||||
errorHandler().LogName = args::FilenameWithoutExe(Args[0]);
|
errorHandler().LogName = args::getFilenameWithoutExe(Args[0]);
|
||||||
errorHandler().ErrorOS = &Error;
|
errorHandler().ErrorOS = &Error;
|
||||||
errorHandler().ColorDiagnostics = Error.has_colors();
|
errorHandler().ColorDiagnostics = Error.has_colors();
|
||||||
errorHandler().ErrorLimitExceededMsg =
|
errorHandler().ErrorLimitExceededMsg =
|
||||||
|
|
Loading…
Reference in New Issue