summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-03-02 13:30:33 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-03-02 13:30:33 +0000
commita4f0aad95182b7c6dec35fea0d1dc4ef3046b5ab (patch)
treec981102d506f312cfe521648f7d523a2a6a03f75 /lib/Support
parentfc6d7d6cf53a539555f2065a059300e181ddb94b (diff)
downloadllvm-a4f0aad95182b7c6dec35fea0d1dc4ef3046b5ab.tar.gz
llvm-a4f0aad95182b7c6dec35fea0d1dc4ef3046b5ab.tar.bz2
llvm-a4f0aad95182b7c6dec35fea0d1dc4ef3046b5ab.tar.xz
[C++11] Replace llvm::tie with std::tie.
The old implementation is no longer needed in C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/LockFileManager.cpp2
-rw-r--r--lib/Support/Unix/Process.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/LockFileManager.cpp b/lib/Support/LockFileManager.cpp
index c7c51e646b..3e23298e4f 100644
--- a/lib/Support/LockFileManager.cpp
+++ b/lib/Support/LockFileManager.cpp
@@ -42,7 +42,7 @@ LockFileManager::readLockFile(StringRef LockFileName) {
StringRef Hostname;
StringRef PIDStr;
- tie(Hostname, PIDStr) = getToken(MB->getBuffer(), " ");
+ std::tie(Hostname, PIDStr) = getToken(MB->getBuffer(), " ");
PIDStr = PIDStr.substr(PIDStr.find_first_not_of(" "));
int PID;
if (!PIDStr.getAsInteger(10, PID))
diff --git a/lib/Support/Unix/Process.inc b/lib/Support/Unix/Process.inc
index 1fc7c969e0..9fb4356ddc 100644
--- a/lib/Support/Unix/Process.inc
+++ b/lib/Support/Unix/Process.inc
@@ -135,7 +135,7 @@ size_t Process::GetMallocUsage() {
void Process::GetTimeUsage(TimeValue &elapsed, TimeValue &user_time,
TimeValue &sys_time) {
elapsed = TimeValue::now();
- llvm::tie(user_time, sys_time) = getRUsageTimes();
+ std::tie(user_time, sys_time) = getRUsageTimes();
}
#if defined(HAVE_MACH_MACH_H) && !defined(__GNU__)