diff options
author | Rui Ueyama <ruiu@google.com> | 2017-01-06 10:04:35 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-01-06 10:04:35 +0000 |
commit | b4c63caf7660ba62e13da05b09886cf84bb0cf2c (patch) | |
tree | 3df8aa773758b47c0d42414cae0cd0a40af292e4 | |
parent | ce039266c11a521f6702f413e04875c29d340822 (diff) | |
download | bcm5719-llvm-b4c63caf7660ba62e13da05b09886cf84bb0cf2c.tar.gz bcm5719-llvm-b4c63caf7660ba62e13da05b09886cf84bb0cf2c.zip |
Rename lld::stringize -> lld::toString.
llvm-svn: 291223
-rw-r--r-- | lld/COFF/Driver.cpp | 2 | ||||
-rw-r--r-- | lld/ELF/Driver.cpp | 2 | ||||
-rw-r--r-- | lld/ELF/DriverUtils.cpp | 2 | ||||
-rw-r--r-- | lld/include/lld/Core/Reproduce.h | 2 | ||||
-rw-r--r-- | lld/lib/Core/Reproduce.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 25fc8142b84..4dabd9ebcc6 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -369,7 +369,7 @@ static std::string createResponseFile(const opt::InputArgList &Args, case OPT_libpath: break; default: - OS << stringize(Arg) << "\n"; + OS << toString(Arg) << "\n"; } } diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 0f150dac584..6afbe62e5ec 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -426,7 +426,7 @@ static uint64_t parseSectionAddress(StringRef S, opt::Arg *Arg) { if (S.startswith("0x")) S = S.drop_front(2); if (S.getAsInteger(16, VA)) - error("invalid argument: " + stringize(Arg)); + error("invalid argument: " + toString(Arg)); return VA; } diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index a81b133f674..3a20cd76efe 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -146,7 +146,7 @@ std::string elf::createResponseFile(const opt::InputArgList &Args) { << "\n"; break; default: - OS << stringize(Arg) << "\n"; + OS << toString(Arg) << "\n"; } } return Data.str(); diff --git a/lld/include/lld/Core/Reproduce.h b/lld/include/lld/Core/Reproduce.h index 12bbf06466f..6e1d36a5491 100644 --- a/lld/include/lld/Core/Reproduce.h +++ b/lld/include/lld/Core/Reproduce.h @@ -33,7 +33,7 @@ std::string quote(StringRef S); std::string rewritePath(StringRef S); // Returns the string form of the given argument. -std::string stringize(llvm::opt::Arg *Arg); +std::string toString(llvm::opt::Arg *Arg); } #endif diff --git a/lld/lib/Core/Reproduce.cpp b/lld/lib/Core/Reproduce.cpp index 4f930372762..58bf2bda5a8 100644 --- a/lld/lib/Core/Reproduce.cpp +++ b/lld/lib/Core/Reproduce.cpp @@ -55,7 +55,7 @@ std::string lld::rewritePath(StringRef S) { return S; } -std::string lld::stringize(opt::Arg *Arg) { +std::string lld::toString(opt::Arg *Arg) { std::string K = Arg->getSpelling(); if (Arg->getNumValues() == 0) return K; |