aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-12-31 11:45:20 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-12-31 11:45:20 +0000
commit9b4aba85a89f9347212e00f80953f2a685ffeb36 (patch)
treee88361856d09408bcfae59966a023c8927bd95e8
parent8e98c1f2540be6e5adfcae15064a831fa0b3a8c9 (diff)
Switch this code to a more idiomatic double using namespace directive.
Fix a truly odd namespace qualifier that was flat out wrong in the process. The fully qualified namespace would have been llvm::sys::TimeValue, llvm::TimeValue makes no sense. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171292 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/Process.cpp3
-rw-r--r--lib/Support/Unix/Process.inc2
-rw-r--r--lib/Support/Windows/Process.inc4
3 files changed, 3 insertions, 6 deletions
diff --git a/lib/Support/Process.cpp b/lib/Support/Process.cpp
index 6e24c45fa0..1e21d64e60 100644
--- a/lib/Support/Process.cpp
+++ b/lib/Support/Process.cpp
@@ -15,7 +15,7 @@
#include "llvm/Support/Process.h"
#include "llvm/Support/ErrorHandling.h"
-namespace llvm {
+using namespace llvm;
using namespace sys;
//===----------------------------------------------------------------------===//
@@ -54,7 +54,6 @@ self_process::~self_process() {
#pragma warning(pop)
#endif
-}
// Include the platform-specific parts of this class.
#ifdef LLVM_ON_UNIX
diff --git a/lib/Support/Unix/Process.inc b/lib/Support/Unix/Process.inc
index dedc4430d6..b83f5079ce 100644
--- a/lib/Support/Unix/Process.inc
+++ b/lib/Support/Unix/Process.inc
@@ -324,7 +324,7 @@ static unsigned GetRandomNumberSeed() {
// Otherwise, swizzle the current time and the process ID to form a reasonable
// seed.
- TimeValue Now = llvm::TimeValue::now();
+ TimeValue Now = TimeValue::now();
return hash_combine(Now.seconds(), Now.nanoseconds(), ::getpid());
}
#endif
diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc
index fc24ceaf07..9ad7917714 100644
--- a/lib/Support/Windows/Process.inc
+++ b/lib/Support/Windows/Process.inc
@@ -35,7 +35,7 @@
# define _HEAPOK (-2)
#endif
-namespace llvm {
+using namespace llvm;
using namespace sys;
@@ -261,5 +261,3 @@ const char *Process::ResetColor() {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), defaultColors());
return 0;
}
-
-}