SimplifyCFG: Don't generate invalid code for switch used to initialize
[oota-llvm.git] / lib / Support / Process.cpp
index 2cff1cebe51f79f98cb8d519622f2a751d58e50f..88ca7c3f220fa3ee1dc7f430ce062242a26f79f1 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "llvm/Support/Process.h"
 #include "llvm/Config/config.h"
-#include <cstdlib>
 
 namespace llvm {
 using namespace sys;
@@ -23,15 +22,6 @@ using namespace sys;
 //===          independent code.
 //===----------------------------------------------------------------------===//
 
-unsigned llvm::sys::Process::GetRandomNumber() {
-#if defined(HAVE_ARC4RANDOM)
-  return arc4random();
-#else
-  static int x = (::srand(::time(NULL)), 0);
-  return ::rand();
-#endif
-}
-
 }
 
 // Include the platform-specific parts of this class.