summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-02 05:08:18 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-02 05:08:18 +0000
commit024a79f78055928ced8f7be620ef5106de80e2bf (patch)
tree5d4edf9408668f4ca3f2c5bbe449a941f30f462b /llvm/include
parentad5741b075518e840d4ef55bffe3e3cbf41c370b (diff)
downloadbcm5719-llvm-024a79f78055928ced8f7be620ef5106de80e2bf.tar.gz
bcm5719-llvm-024a79f78055928ced8f7be620ef5106de80e2bf.zip
Revert "ThinLTO: add module caching handling."
This reverts commit r265214, unintentionally commited. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 265216
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ADT/StringExtras.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/include/llvm/ADT/StringExtras.h b/llvm/include/llvm/ADT/StringExtras.h
index 9f4db4e86fb..8de6fb257ce 100644
--- a/llvm/include/llvm/ADT/StringExtras.h
+++ b/llvm/include/llvm/ADT/StringExtras.h
@@ -59,22 +59,6 @@ static inline std::string utohexstr(uint64_t X, bool LowerCase = false) {
return std::string(BufPtr, std::end(Buffer));
}
-// Convert buffer \p Input to its hexadecimal representation.
-// The returned string is double the size of \p Input.
-static inline std::string toHex(StringRef Input) {
- static const char *const LUT = "0123456789ABCDEF";
- size_t Length = Input.size();
-
- std::string Output;
- Output.reserve(2 * Length);
- for (size_t i = 0; i < Length; ++i) {
- const unsigned char c = Input[i];
- Output.push_back(LUT[c >> 4]);
- Output.push_back(LUT[c & 15]);
- }
- return Output;
-}
-
static inline std::string utostr(uint64_t X, bool isNeg = false) {
char Buffer[21];
char *BufPtr = std::end(Buffer);
OpenPOWER on IntegriCloud