Switch this code to a more idiomatic double using namespace directive.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 31 Dec 2012 11:45:20 +0000 (11:45 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 31 Dec 2012 11:45:20 +0000 (11:45 +0000)
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

lib/Support/Process.cpp
lib/Support/Unix/Process.inc
lib/Support/Windows/Process.inc

index 6e24c45fa0859499352288e3346e16a548d46584..1e21d64e601f43cc85da8fa054faad2ef7d7a7b5 100644 (file)
@@ -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
index dedc4430d6ff6b37d37657b518f42042cc2f50cd..b83f5079ce00bd2c647a97b93a8a1509000b8cb1 100644 (file)
@@ -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
index fc24ceaf07ae58d376c5906fd1391b20f589c764..9ad7917714c9b8bfc501fb648b11b5c89b97bbda 100644 (file)
@@ -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;
 }
-
-}