From e3cd5ca7e79f4359e8a101c211fc9c117eb62347 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 18 Jun 2009 16:54:52 +0000 Subject: [PATCH] Move Threading.[h|cpp] from Support to System. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73707 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/ManagedStatic.h | 2 +- include/llvm/{Support => System}/Threading.h | 6 +++--- lib/{Support => System}/Threading.cpp | 4 ++-- lib/VMCore/Constants.cpp | 2 +- lib/VMCore/Function.cpp | 2 +- lib/VMCore/LeakDetector.cpp | 2 +- lib/VMCore/Pass.cpp | 2 +- lib/VMCore/PassManager.cpp | 2 +- lib/VMCore/Type.cpp | 2 +- lib/VMCore/TypeSymbolTable.cpp | 2 +- lib/VMCore/Value.cpp | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) rename include/llvm/{Support => System}/Threading.h (91%) rename lib/{Support => System}/Threading.cpp (93%) diff --git a/include/llvm/Support/ManagedStatic.h b/include/llvm/Support/ManagedStatic.h index 412e474ffba..ee335d819a9 100644 --- a/include/llvm/Support/ManagedStatic.h +++ b/include/llvm/Support/ManagedStatic.h @@ -15,7 +15,7 @@ #define LLVM_SUPPORT_MANAGED_STATIC_H #include "llvm/System/Atomic.h" -#include "llvm/Support/Threading.h" +#include "llvm/System/Threading.h" namespace llvm { diff --git a/include/llvm/Support/Threading.h b/include/llvm/System/Threading.h similarity index 91% rename from include/llvm/Support/Threading.h rename to include/llvm/System/Threading.h index bac11a23800..42d2f89bcb8 100644 --- a/include/llvm/Support/Threading.h +++ b/include/llvm/System/Threading.h @@ -1,4 +1,4 @@ -//===-- llvm/Support/Threading.h - Control multithreading mode --*- C++ -*-===// +//===-- llvm/System/Threading.h - Control multithreading mode --*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_SUPPORT_THREADING_H -#define LLVM_SUPPORT_THREADING_H +#ifndef LLVM_SYSTEM_THREADING_H +#define LLVM_SYSTEM_THREADING_H namespace llvm { /// llvm_start_multithreaded - Allocate and initialize structures needed to diff --git a/lib/Support/Threading.cpp b/lib/System/Threading.cpp similarity index 93% rename from lib/Support/Threading.cpp rename to lib/System/Threading.cpp index 15a4b915d13..a2d7f82715d 100644 --- a/lib/Support/Threading.cpp +++ b/lib/System/Threading.cpp @@ -1,4 +1,4 @@ -//===-- llvm/Support/Threading.cpp- Control multithreading mode --*- C++ -*-==// +//===-- llvm/System/Threading.cpp- Control multithreading mode --*- C++ -*-==// // // The LLVM Compiler Infrastructure // @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Support/Threading.h" +#include "llvm/System/Threading.h" #include "llvm/System/Atomic.h" #include "llvm/System/Mutex.h" #include diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 043a30ff47f..8af5b037d11 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -25,8 +25,8 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MathExtras.h" -#include "llvm/Support/Threading.h" #include "llvm/System/RWMutex.h" +#include "llvm/System/Threading.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallVector.h" #include diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 00f9fa30067..ace54d35b2c 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -18,8 +18,8 @@ #include "llvm/Support/LeakDetector.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/StringPool.h" -#include "llvm/Support/Threading.h" #include "llvm/System/RWMutex.h" +#include "llvm/System/Threading.h" #include "SymbolTableListTraitsImpl.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/VMCore/LeakDetector.cpp b/lib/VMCore/LeakDetector.cpp index 52a424ee79e..036cb9c616c 100644 --- a/lib/VMCore/LeakDetector.cpp +++ b/lib/VMCore/LeakDetector.cpp @@ -16,8 +16,8 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Streams.h" -#include "llvm/Support/Threading.h" #include "llvm/System/RWMutex.h" +#include "llvm/System/Threading.h" #include "llvm/Value.h" using namespace llvm; diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index 70ec108fa18..3fce83d5a60 100644 --- a/lib/VMCore/Pass.cpp +++ b/lib/VMCore/Pass.cpp @@ -19,8 +19,8 @@ #include "llvm/ModuleProvider.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/Threading.h" #include "llvm/System/Atomic.h" +#include "llvm/System/Threading.h" #include #include #include diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 7cd519483e2..e0ff1845f15 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -20,8 +20,8 @@ #include "llvm/Support/Streams.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/Threading.h" #include "llvm/System/Mutex.h" +#include "llvm/System/Threading.h" #include "llvm/Analysis/Dominators.h" #include "llvm-c/Core.h" #include diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index b7adaddd9a1..f5f72be4266 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -23,9 +23,9 @@ #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/Threading.h" #include "llvm/System/Mutex.h" #include "llvm/System/RWMutex.h" +#include "llvm/System/Threading.h" #include #include using namespace llvm; diff --git a/lib/VMCore/TypeSymbolTable.cpp b/lib/VMCore/TypeSymbolTable.cpp index 0a88419bc77..0ab6c54a4c8 100644 --- a/lib/VMCore/TypeSymbolTable.cpp +++ b/lib/VMCore/TypeSymbolTable.cpp @@ -16,8 +16,8 @@ #include "llvm/ADT/StringExtras.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Streams.h" -#include "llvm/Support/Threading.h" #include "llvm/System/RWMutex.h" +#include "llvm/System/Threading.h" #include using namespace llvm; diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index 8bc74528454..8a37b002ba3 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -21,9 +21,9 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/LeakDetector.h" #include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/Threading.h" #include "llvm/Support/ValueHandle.h" #include "llvm/System/RWMutex.h" +#include "llvm/System/Threading.h" #include "llvm/ADT/DenseMap.h" #include using namespace llvm;