[llvm-commits] CVS: llvm/lib/System/IncludeFile.cpp Memory.cpp Mutex.cpp

Reid Spencer reid at x10sys.com
Wed Jul 26 09:18:26 PDT 2006



Changes in directory llvm/lib/System:

IncludeFile.cpp updated: 1.1 -> 1.2
Memory.cpp updated: 1.5 -> 1.6
Mutex.cpp updated: 1.7 -> 1.8
---
Log message:

For PR780: http://llvm.org/PR780 :
1. Move IncludeFile.h to System library
2. Move IncludeFile.cpp to System library
3. #1 and #2 required to prevent cyclic library dependencies for libSystem
4. Convert all existing uses of Support/IncludeFile.h to System/IncludeFile.h
5. Add IncludeFile support to various lib/System classes.
6. Add new lib/System classes to LinkAllVMCore.h
All this in an attempt to pull in lib/System to what's required for VMCore


---
Diffs of the changes:  (+8 -3)

 IncludeFile.cpp |    6 +++---
 Memory.cpp      |    2 ++
 Mutex.cpp       |    3 +++
 3 files changed, 8 insertions(+), 3 deletions(-)


Index: llvm/lib/System/IncludeFile.cpp
diff -u llvm/lib/System/IncludeFile.cpp:1.1 llvm/lib/System/IncludeFile.cpp:1.2
--- llvm/lib/System/IncludeFile.cpp:1.1	Wed Jun  7 15:00:19 2006
+++ llvm/lib/System/IncludeFile.cpp	Wed Jul 26 11:18:00 2006
@@ -1,4 +1,4 @@
-//===- lib/Support/IncludeFile.cpp - Ensure Linking Of Implementation -----===//
+//===- lib/System/IncludeFile.cpp - Ensure Linking Of Implementation -----===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -11,10 +11,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Support/IncludeFile.h"
+#include "llvm/System/IncludeFile.h"
 
 using namespace llvm;
 
 // This constructor is used to ensure linking of other modules. See the
-// llvm/Support/IncludeFile.h header for details. 
+// llvm/System/IncludeFile.h header for details. 
 IncludeFile::IncludeFile(void*) {}


Index: llvm/lib/System/Memory.cpp
diff -u llvm/lib/System/Memory.cpp:1.5 llvm/lib/System/Memory.cpp:1.6
--- llvm/lib/System/Memory.cpp:1.5	Thu May  5 17:33:05 2005
+++ llvm/lib/System/Memory.cpp	Wed Jul 26 11:18:00 2006
@@ -14,6 +14,7 @@
 
 #include "llvm/System/Memory.h"
 #include "llvm/Config/config.h"
+#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 using namespace sys;
@@ -33,3 +34,4 @@
 #include "Win32/Memory.inc"
 #endif
 
+DEFINING_FILE_FOR(SystemMemory)


Index: llvm/lib/System/Mutex.cpp
diff -u llvm/lib/System/Mutex.cpp:1.7 llvm/lib/System/Mutex.cpp:1.8
--- llvm/lib/System/Mutex.cpp:1.7	Mon Apr 17 12:55:40 2006
+++ llvm/lib/System/Mutex.cpp	Wed Jul 26 11:18:00 2006
@@ -13,6 +13,7 @@
 
 #include "llvm/Config/config.h"
 #include "llvm/System/Mutex.h"
+#include "llvm/System/IncludeFile.h"
 
 //===----------------------------------------------------------------------===//
 //=== WARNING: Implementation here must contain only TRULY operating system
@@ -157,3 +158,5 @@
 #warning Neither LLVM_ON_UNIX nor LLVM_ON_WIN32 was set in System/Mutex.cpp
 #endif
 #endif
+
+DEFINING_FILE_FOR(SystemMutex)






More information about the llvm-commits mailing list