diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-12-31 11:45:20 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-12-31 11:45:20 +0000 |
commit | 5473dfb099d2787979c1c260e08b06dad59ab0d1 (patch) | |
tree | b9b679827816a87eec8ed61db3458ba6c09e48e4 /llvm/lib/Support | |
parent | 304de3c4247f25b7a75e6af32c64a26a12121f05 (diff) | |
download | bcm5719-llvm-5473dfb099d2787979c1c260e08b06dad59ab0d1.tar.gz bcm5719-llvm-5473dfb099d2787979c1c260e08b06dad59ab0d1.zip |
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.
llvm-svn: 171292
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Process.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/Support/Unix/Process.inc | 2 | ||||
-rw-r--r-- | llvm/lib/Support/Windows/Process.inc | 4 |
3 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp index 6e24c45fa08..1e21d64e601 100644 --- a/llvm/lib/Support/Process.cpp +++ b/llvm/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/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index dedc4430d6f..b83f5079ce0 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/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/llvm/lib/Support/Windows/Process.inc b/llvm/lib/Support/Windows/Process.inc index fc24ceaf07a..9ad7917714c 100644 --- a/llvm/lib/Support/Windows/Process.inc +++ b/llvm/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; } - -} |