diff --git a/lib/Support/Process.cpp b/lib/Support/Process.cpp index 6e24c45fa08..1e21d64e601 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 dedc4430d6f..b83f5079ce0 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 fc24ceaf07a..9ad7917714c 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; } - -}