mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-12 15:30:56 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171292 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e98c1f254
commit
9b4aba85a8
@ -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…
x
Reference in New Issue
Block a user