forked from OSchip/llvm-project
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:
parent
304de3c424
commit
5473dfb099
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue