[llvm-commits] [llvm] r171292 - in /llvm/trunk/lib/Support: Process.cpp Unix/Process.inc Windows/Process.inc
Chandler Carruth
chandlerc at gmail.com
Mon Dec 31 03:45:20 PST 2012
Author: chandlerc
Date: Mon Dec 31 05:45:20 2012
New Revision: 171292
URL: http://llvm.org/viewvc/llvm-project?rev=171292&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Support/Process.cpp
llvm/trunk/lib/Support/Unix/Process.inc
llvm/trunk/lib/Support/Windows/Process.inc
Modified: llvm/trunk/lib/Support/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Process.cpp?rev=171292&r1=171291&r2=171292&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Process.cpp (original)
+++ llvm/trunk/lib/Support/Process.cpp Mon Dec 31 05:45:20 2012
@@ -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 @@
#pragma warning(pop)
#endif
-}
// Include the platform-specific parts of this class.
#ifdef LLVM_ON_UNIX
Modified: llvm/trunk/lib/Support/Unix/Process.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Process.inc?rev=171292&r1=171291&r2=171292&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Process.inc (original)
+++ llvm/trunk/lib/Support/Unix/Process.inc Mon Dec 31 05:45:20 2012
@@ -324,7 +324,7 @@
// 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
Modified: llvm/trunk/lib/Support/Windows/Process.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Process.inc?rev=171292&r1=171291&r2=171292&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Process.inc (original)
+++ llvm/trunk/lib/Support/Windows/Process.inc Mon Dec 31 05:45:20 2012
@@ -35,7 +35,7 @@
# define _HEAPOK (-2)
#endif
-namespace llvm {
+using namespace llvm;
using namespace sys;
@@ -261,5 +261,3 @@
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), defaultColors());
return 0;
}
-
-}
More information about the llvm-commits
mailing list