summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-08-27 06:18:10 +0000
committerRui Ueyama <ruiu@google.com>2018-08-27 06:18:10 +0000
commit41831204c7e215d650d7446ccf7dc3ef5010f8af (patch)
treef481ba49f109e689d1752d00cdca0993efa9eefe
parentc4b0061c0525ff268947e35c1dc9eefced26c083 (diff)
downloadbcm5719-llvm-41831204c7e215d650d7446ccf7dc3ef5010f8af.tar.gz
bcm5719-llvm-41831204c7e215d650d7446ccf7dc3ef5010f8af.zip
Rename a function to follow the LLVM coding style.
llvm-svn: 340716
-rw-r--r--lld/COFF/Driver.cpp2
-rw-r--r--lld/Common/Args.cpp2
-rw-r--r--lld/ELF/Driver.cpp2
-rw-r--r--lld/include/lld/Common/Args.h2
-rw-r--r--lld/lib/Driver/DarwinLdDriver.cpp2
-rw-r--r--lld/wasm/Driver.cpp2
6 files changed, 6 insertions, 6 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
index e8837924b4d..148238f0069 100644
--- a/lld/COFF/Driver.cpp
+++ b/lld/COFF/Driver.cpp
@@ -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 =
diff --git a/lld/Common/Args.cpp b/lld/Common/Args.cpp
index 4f46ba625c3..854b50a1783 100644
--- a/lld/Common/Args.cpp
+++ b/lld/Common/Args.cpp
@@ -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);
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 6aaf8d777c1..5b05b218182 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -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)";
diff --git a/lld/include/lld/Common/Args.h b/lld/include/lld/Common/Args.h
index 75ad2e0cd96..769d4840cf0 100644
--- a/lld/include/lld/Common/Args.h
+++ b/lld/include/lld/Common/Args.h
@@ -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
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp
index ef494670124..289b3007b26 100644
--- a/lld/lib/Driver/DarwinLdDriver.cpp
+++ b/lld/lib/Driver/DarwinLdDriver.cpp
@@ -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)";
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index b443ee04e23..cf6184036ec 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -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 =
OpenPOWER on IntegriCloud