For PR780:
authorReid Spencer <rspencer@reidspencer.com>
Wed, 26 Jul 2006 16:55:39 +0000 (16:55 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 26 Jul 2006 16:55:39 +0000 (16:55 +0000)
Put the rest of lib/System into LinkAllVMCore.h. This makes all of
lib/System available to programs that #include LinkALlVMCore.h so that
loadable modules linked into those programs can depend on all of lib/System
being available.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29288 91177308-0d34-0410-b5e6-96231b3b80d8

17 files changed:
include/llvm/LinkAllVMCore.h
include/llvm/System/Alarm.h
include/llvm/System/DynamicLibrary.h
include/llvm/System/MappedFile.h
include/llvm/System/Path.h
include/llvm/System/Process.h
include/llvm/System/Program.h
include/llvm/System/Signals.h
include/llvm/System/TimeValue.h
lib/System/Alarm.cpp
lib/System/DynamicLibrary.cpp
lib/System/MappedFile.cpp
lib/System/Path.cpp
lib/System/Process.cpp
lib/System/Program.cpp
lib/System/Signals.cpp
lib/System/TimeValue.cpp

index fa46dbb1f1190eb24ec7e671e859861eae483c87..ae1e1cd025bb6a412172b45fcec1f2e53ff96006 100644 (file)
 #include "llvm/IntrinsicInst.h"
 #include "llvm/InlineAsm.h"
 #include "llvm/Analysis/Verifier.h"
+#include "llvm/System/Alarm.h"
+#include "llvm/System/DynamicLibrary.h"
+#include "llvm/System/MappedFile.h"
 #include "llvm/System/Memory.h"
 #include "llvm/System/Mutex.h"
+#include "llvm/System/Path.h"
+#include "llvm/System/Process.h"
+#include "llvm/System/Program.h"
+#include "llvm/System/Signals.h"
+#include "llvm/System/TimeValue.h"
 #include "llvm/Support/Dwarf.h"
 #include "llvm/Support/Mangler.h"
 #include "llvm/Support/MathExtras.h"
index ec44a6df1e20de76335028b1e949f8c0554093bc..2b78da6dba2b932e77e513012ad73dd9866795a1 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef LLVM_SYSTEM_ALARM_H
 #define LLVM_SYSTEM_ALARM_H
 
+#include "llvm/System/IncludeFile.h"
+
 namespace llvm {
 namespace sys {
 
@@ -42,4 +44,6 @@ namespace sys {
 } // End sys namespace
 } // End llvm namespace
 
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemAlarm)
+
 #endif
index e053daf4405623df32b317fb5f1f532c6bb88ee3..fc1bfbe1fba62b9c87c744a2875ab87287b5eaf8 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_SYSTEM_DYNAMIC_LIBRARY_H
 
 #include "llvm/System/Path.h"
+#include "llvm/System/IncludeFile.h"
 #include <string>
 
 namespace llvm {
@@ -125,4 +126,6 @@ namespace sys {
 } // End sys namespace
 } // End llvm namespace
 
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemDynamicLibrary)
+
 #endif // LLVM_SYSTEM_DYNAMIC_LIBRARY_H
index 9fd0d08357aaa664ca1b63ee8b06b95eac5c7439..3160427a6cd92efcfe038eb7fda4e0649289cf8e 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_SYSTEM_MAPPEDFILE_H
 
 #include "llvm/System/Path.h"
+#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 namespace sys {
@@ -152,5 +153,6 @@ namespace sys {
 }
 }
 
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemMappedFile)
 
 #endif
index 14250b5de8ea4bfaec10915e475dce8319f5141e..b4eaca7abf4e35635e9a3792861d29f8b69fb8a1 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_SYSTEM_PATH_H
 
 #include "llvm/System/TimeValue.h"
+#include "llvm/System/IncludeFile.h"
 #include <set>
 #include <string>
 #include <vector>
@@ -571,4 +572,5 @@ std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath);
 
 }
 
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemPath)
 #endif
index 600d8d5cc3c621aec9702eb27d849f700354ebb9..f843af36fc4f60c0d66b0559f2857ffcf80b7758 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_SYSTEM_PROCESS_H
 
 #include "llvm/System/TimeValue.h"
+#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 namespace sys {
@@ -99,5 +100,6 @@ namespace sys {
 }
 }
 
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProcess)
 
 #endif
index 0a237bccbcf74d58786cafa9a404c7b1fe3e725c..92534de4052fe4b2d9030166836c5f64a3a12d39 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_SYSTEM_PROGRAM_H
 
 #include "llvm/System/Path.h"
+#include "llvm/System/IncludeFile.h"
 #include <vector>
 
 namespace llvm {
@@ -82,5 +83,6 @@ namespace sys {
 }
 }
 
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProgram)
 
 #endif
index 1d5286f3bd98124493c95328e7212fe407455be5..21feb5b3161a96e77a88277d070d054fafa93a3d 100644 (file)
@@ -16,6 +16,7 @@
 #define LLVM_SYSTEM_SIGNALS_H
 
 #include "llvm/System/Path.h"
+#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 namespace sys {
@@ -49,4 +50,6 @@ namespace sys {
 } // End sys namespace
 } // End llvm namespace
 
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemSignals)
+
 #endif
index 624eb70176fba219cb41544dc661df886c2795ce..07cb18c134398ad7eabe04011352120d63bae3e0 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/DataTypes.h"
+#include "llvm/System/IncludeFile.h"
 #include <string>
 
 #ifndef LLVM_SYSTEM_TIMEVALUE_H
@@ -380,4 +381,6 @@ inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) {
 }
 }
 
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemTimeValue)
+
 #endif
index d782b293e33495979de1b52bb2b3f1ca5ed369e5..e0b7f7223a38e63d8cdcd4cb6e7fd70ffd97677c 100644 (file)
@@ -32,3 +32,4 @@ using namespace sys;
 #include "Win32/Alarm.inc"
 #endif
 
+DEFINING_FILE_FOR(SystemAlarm)
index 435513d4ff1edd71163d46fca7d9a6954e74488a..859092a52af2ac15b69b93d6cb23bc2a8b010ab7 100644 (file)
@@ -173,3 +173,5 @@ void *DynamicLibrary::GetAddressOfSymbol(const char *symbolName) {
 }
 
 #endif // LLVM_ON_WIN32
+
+DEFINING_FILE_FOR(SystemDynamicLibrary)
index a91a623d77cdceda75c3ec9f67e868f85bc05ff4..41b59461d393313ad8521c07771f5e973d02ba4b 100644 (file)
@@ -32,3 +32,4 @@ using namespace sys;
 #include "Win32/MappedFile.inc"
 #endif
 
+DEFINING_FILE_FOR(SystemMappedFile)
index efadfa9adf2208f75bcc866036c7f64eba91e4b9..1246038f84fe6fa9a0ccfe87cdb1305b884ae66a 100644 (file)
@@ -107,3 +107,5 @@ std::string Path::GetDLLSuffix() {
 #if defined(LLVM_ON_WIN32)
 #include "Win32/Path.inc"
 #endif
+
+DEFINING_FILE_FOR(SystemPath)
index 644a81e1a9922bdc9b969a1146ff91bfe74cf2d0..d69f78ecd17662108883d3fda6b394d5201c021d 100644 (file)
@@ -32,3 +32,4 @@ using namespace sys;
 #include "Win32/Process.inc"
 #endif
 
+DEFINING_FILE_FOR(SystemProcess)
index 22c38e2657df2d7959848025ca4b592e66b87a01..e91a3d54c2ec05c4a250318d3676b3db56de7ff8 100644 (file)
@@ -32,3 +32,4 @@ using namespace sys;
 #include "Win32/Program.inc"
 #endif
 
+DEFINING_FILE_FOR(SystemProgram)
index 2d0de9b930c0e373ae991f6806c24994596b8076..229dd1434bd5d6ce7bddd421ba2864443440a116 100644 (file)
@@ -33,3 +33,4 @@ using namespace sys;
 #include "Win32/Signals.inc"
 #endif
 
+DEFINING_FILE_FOR(SystemSignals)
index 227d67701eb2f104fefb2eb8d2ad4aa53f479a3f..8ecfd22da7b615a2ac8b9d279ad4e15298fdb6b3 100644 (file)
@@ -56,3 +56,4 @@ TimeValue::normalize( void ) {
 #include "Win32/TimeValue.inc"
 #endif
 
+DEFINING_FILE_FOR(SystemTimeValue)