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
This commit is contained in:
Chandler Carruth 2012-12-31 11:45:20 +00:00
parent 304de3c424
commit 5473dfb099
3 changed files with 3 additions and 6 deletions

View 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

View 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

View 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;
}
}