summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitd6f1f84f5170c3f7ac35d1ff3d03d95471d80388 (patch)
tree0942473b83cbd6a1b63871e744345aaf848229e8 /llvm/lib/Support
parentcef536ec0fbc0a194f261a25cb499aeada32f943 (diff)
downloadbcm5719-llvm-d6f1f84f5170c3f7ac35d1ff3d03d95471d80388.tar.gz
bcm5719-llvm-d6f1f84f5170c3f7ac35d1ff3d03d95471d80388.zip
[C++11] Replace llvm::tie with std::tie.
The old implementation is no longer needed in C++11. llvm-svn: 202644
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/LockFileManager.cpp2
-rw-r--r--llvm/lib/Support/Unix/Process.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/LockFileManager.cpp b/llvm/lib/Support/LockFileManager.cpp
index c7c51e646b1..3e23298e4f9 100644
--- a/llvm/lib/Support/LockFileManager.cpp
+++ b/llvm/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/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc
index 1fc7c969e0c..9fb4356ddc3 100644
--- a/llvm/lib/Support/Unix/Process.inc
+++ b/llvm/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__)
OpenPOWER on IntegriCloud