[lld] r340716 - Rename a function to follow the LLVM coding style.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 26 23:18:11 PDT 2018
Author: ruiu
Date: Sun Aug 26 23:18:10 2018
New Revision: 340716
URL: http://llvm.org/viewvc/llvm-project?rev=340716&view=rev
Log:
Rename a function to follow the LLVM coding style.
Modified:
lld/trunk/COFF/Driver.cpp
lld/trunk/Common/Args.cpp
lld/trunk/ELF/Driver.cpp
lld/trunk/include/lld/Common/Args.h
lld/trunk/lib/Driver/DarwinLdDriver.cpp
lld/trunk/wasm/Driver.cpp
Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=340716&r1=340715&r2=340716&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Sun Aug 26 23:18:10 2018
@@ -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 =
Modified: lld/trunk/Common/Args.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/Common/Args.cpp?rev=340716&r1=340715&r2=340716&view=diff
==============================================================================
--- lld/trunk/Common/Args.cpp (original)
+++ lld/trunk/Common/Args.cpp Sun Aug 26 23:18:10 2018
@@ -66,7 +66,7 @@ std::vector<StringRef> lld::args::getLin
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);
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=340716&r1=340715&r2=340716&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Sun Aug 26 23:18:10 2018
@@ -74,7 +74,7 @@ static void setConfigs(opt::InputArgList
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)";
Modified: lld/trunk/include/lld/Common/Args.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Common/Args.h?rev=340716&r1=340715&r2=340716&view=diff
==============================================================================
--- lld/trunk/include/lld/Common/Args.h (original)
+++ lld/trunk/include/lld/Common/Args.h Sun Aug 26 23:18:10 2018
@@ -30,7 +30,7 @@ uint64_t getZOptionValue(llvm::opt::Inpu
std::vector<StringRef> getLines(MemoryBufferRef MB);
-StringRef FilenameWithoutExe(StringRef Path);
+StringRef getFilenameWithoutExe(StringRef Path);
} // namespace args
} // namespace lld
Modified: lld/trunk/lib/Driver/DarwinLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/DarwinLdDriver.cpp?rev=340716&r1=340715&r2=340716&view=diff
==============================================================================
--- lld/trunk/lib/Driver/DarwinLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/DarwinLdDriver.cpp Sun Aug 26 23:18:10 2018
@@ -1143,7 +1143,7 @@ static void createFiles(MachOLinkingCont
/// 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)";
Modified: lld/trunk/wasm/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Driver.cpp?rev=340716&r1=340715&r2=340716&view=diff
==============================================================================
--- lld/trunk/wasm/Driver.cpp (original)
+++ lld/trunk/wasm/Driver.cpp Sun Aug 26 23:18:10 2018
@@ -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 =
More information about the llvm-commits
mailing list