From 082e2a782172ae665cf506ba945ea7d20157b50d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 26 Jul 2006 16:55:39 +0000 Subject: For PR780: 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. llvm-svn: 29288 --- llvm/include/llvm/LinkAllVMCore.h | 8 ++++++++ llvm/include/llvm/System/Alarm.h | 4 ++++ llvm/include/llvm/System/DynamicLibrary.h | 3 +++ llvm/include/llvm/System/MappedFile.h | 2 ++ llvm/include/llvm/System/Path.h | 2 ++ llvm/include/llvm/System/Process.h | 2 ++ llvm/include/llvm/System/Program.h | 2 ++ llvm/include/llvm/System/Signals.h | 3 +++ llvm/include/llvm/System/TimeValue.h | 3 +++ llvm/lib/System/Alarm.cpp | 1 + llvm/lib/System/DynamicLibrary.cpp | 2 ++ llvm/lib/System/MappedFile.cpp | 1 + llvm/lib/System/Path.cpp | 2 ++ llvm/lib/System/Process.cpp | 1 + llvm/lib/System/Program.cpp | 1 + llvm/lib/System/Signals.cpp | 1 + llvm/lib/System/TimeValue.cpp | 1 + 17 files changed, 39 insertions(+) diff --git a/llvm/include/llvm/LinkAllVMCore.h b/llvm/include/llvm/LinkAllVMCore.h index fa46dbb..ae1e1cd 100644 --- a/llvm/include/llvm/LinkAllVMCore.h +++ b/llvm/include/llvm/LinkAllVMCore.h @@ -23,8 +23,16 @@ #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" diff --git a/llvm/include/llvm/System/Alarm.h b/llvm/include/llvm/System/Alarm.h index ec44a6d..2b78da6 100644 --- a/llvm/include/llvm/System/Alarm.h +++ b/llvm/include/llvm/System/Alarm.h @@ -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 diff --git a/llvm/include/llvm/System/DynamicLibrary.h b/llvm/include/llvm/System/DynamicLibrary.h index e053daf..fc1bfbe 100644 --- a/llvm/include/llvm/System/DynamicLibrary.h +++ b/llvm/include/llvm/System/DynamicLibrary.h @@ -15,6 +15,7 @@ #define LLVM_SYSTEM_DYNAMIC_LIBRARY_H #include "llvm/System/Path.h" +#include "llvm/System/IncludeFile.h" #include 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 diff --git a/llvm/include/llvm/System/MappedFile.h b/llvm/include/llvm/System/MappedFile.h index 9fd0d08..3160427 100644 --- a/llvm/include/llvm/System/MappedFile.h +++ b/llvm/include/llvm/System/MappedFile.h @@ -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 diff --git a/llvm/include/llvm/System/Path.h b/llvm/include/llvm/System/Path.h index 14250b5..b4eaca7 100644 --- a/llvm/include/llvm/System/Path.h +++ b/llvm/include/llvm/System/Path.h @@ -15,6 +15,7 @@ #define LLVM_SYSTEM_PATH_H #include "llvm/System/TimeValue.h" +#include "llvm/System/IncludeFile.h" #include #include #include @@ -571,4 +572,5 @@ std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath); } +FORCE_DEFINING_FILE_TO_BE_LINKED(SystemPath) #endif diff --git a/llvm/include/llvm/System/Process.h b/llvm/include/llvm/System/Process.h index 600d8d5..f843af3 100644 --- a/llvm/include/llvm/System/Process.h +++ b/llvm/include/llvm/System/Process.h @@ -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 diff --git a/llvm/include/llvm/System/Program.h b/llvm/include/llvm/System/Program.h index 0a237bc..92534de 100644 --- a/llvm/include/llvm/System/Program.h +++ b/llvm/include/llvm/System/Program.h @@ -15,6 +15,7 @@ #define LLVM_SYSTEM_PROGRAM_H #include "llvm/System/Path.h" +#include "llvm/System/IncludeFile.h" #include namespace llvm { @@ -82,5 +83,6 @@ namespace sys { } } +FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProgram) #endif diff --git a/llvm/include/llvm/System/Signals.h b/llvm/include/llvm/System/Signals.h index 1d5286f..21feb5b 100644 --- a/llvm/include/llvm/System/Signals.h +++ b/llvm/include/llvm/System/Signals.h @@ -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 diff --git a/llvm/include/llvm/System/TimeValue.h b/llvm/include/llvm/System/TimeValue.h index 624eb70..07cb18c 100644 --- a/llvm/include/llvm/System/TimeValue.h +++ b/llvm/include/llvm/System/TimeValue.h @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/DataTypes.h" +#include "llvm/System/IncludeFile.h" #include #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 diff --git a/llvm/lib/System/Alarm.cpp b/llvm/lib/System/Alarm.cpp index d782b29..e0b7f72 100644 --- a/llvm/lib/System/Alarm.cpp +++ b/llvm/lib/System/Alarm.cpp @@ -32,3 +32,4 @@ using namespace sys; #include "Win32/Alarm.inc" #endif +DEFINING_FILE_FOR(SystemAlarm) diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp index 435513d..859092a 100644 --- a/llvm/lib/System/DynamicLibrary.cpp +++ b/llvm/lib/System/DynamicLibrary.cpp @@ -173,3 +173,5 @@ void *DynamicLibrary::GetAddressOfSymbol(const char *symbolName) { } #endif // LLVM_ON_WIN32 + +DEFINING_FILE_FOR(SystemDynamicLibrary) diff --git a/llvm/lib/System/MappedFile.cpp b/llvm/lib/System/MappedFile.cpp index a91a623..41b5946 100644 --- a/llvm/lib/System/MappedFile.cpp +++ b/llvm/lib/System/MappedFile.cpp @@ -32,3 +32,4 @@ using namespace sys; #include "Win32/MappedFile.inc" #endif +DEFINING_FILE_FOR(SystemMappedFile) diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp index efadfa9..1246038 100644 --- a/llvm/lib/System/Path.cpp +++ b/llvm/lib/System/Path.cpp @@ -107,3 +107,5 @@ std::string Path::GetDLLSuffix() { #if defined(LLVM_ON_WIN32) #include "Win32/Path.inc" #endif + +DEFINING_FILE_FOR(SystemPath) diff --git a/llvm/lib/System/Process.cpp b/llvm/lib/System/Process.cpp index 644a81e..d69f78e 100644 --- a/llvm/lib/System/Process.cpp +++ b/llvm/lib/System/Process.cpp @@ -32,3 +32,4 @@ using namespace sys; #include "Win32/Process.inc" #endif +DEFINING_FILE_FOR(SystemProcess) diff --git a/llvm/lib/System/Program.cpp b/llvm/lib/System/Program.cpp index 22c38e2..e91a3d5 100644 --- a/llvm/lib/System/Program.cpp +++ b/llvm/lib/System/Program.cpp @@ -32,3 +32,4 @@ using namespace sys; #include "Win32/Program.inc" #endif +DEFINING_FILE_FOR(SystemProgram) diff --git a/llvm/lib/System/Signals.cpp b/llvm/lib/System/Signals.cpp index 2d0de9b..229dd14 100644 --- a/llvm/lib/System/Signals.cpp +++ b/llvm/lib/System/Signals.cpp @@ -33,3 +33,4 @@ using namespace sys; #include "Win32/Signals.inc" #endif +DEFINING_FILE_FOR(SystemSignals) diff --git a/llvm/lib/System/TimeValue.cpp b/llvm/lib/System/TimeValue.cpp index 227d677..8ecfd22 100644 --- a/llvm/lib/System/TimeValue.cpp +++ b/llvm/lib/System/TimeValue.cpp @@ -56,3 +56,4 @@ TimeValue::normalize( void ) { #include "Win32/TimeValue.inc" #endif +DEFINING_FILE_FOR(SystemTimeValue) -- cgit v1.1