summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-07-26 16:55:39 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-07-26 16:55:39 +0000
commit082e2a782172ae665cf506ba945ea7d20157b50d (patch)
tree6b3f1eb6c850e912ba55964843e4613ff8d955d5
parentFor PR780: (diff)
downloadllvm-project-082e2a782172ae665cf506ba945ea7d20157b50d.tar.gz
llvm-project-082e2a782172ae665cf506ba945ea7d20157b50d.tar.bz2
llvm-project-082e2a782172ae665cf506ba945ea7d20157b50d.zip
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
-rw-r--r--llvm/include/llvm/LinkAllVMCore.h8
-rw-r--r--llvm/include/llvm/System/Alarm.h4
-rw-r--r--llvm/include/llvm/System/DynamicLibrary.h3
-rw-r--r--llvm/include/llvm/System/MappedFile.h2
-rw-r--r--llvm/include/llvm/System/Path.h2
-rw-r--r--llvm/include/llvm/System/Process.h2
-rw-r--r--llvm/include/llvm/System/Program.h2
-rw-r--r--llvm/include/llvm/System/Signals.h3
-rw-r--r--llvm/include/llvm/System/TimeValue.h3
-rw-r--r--llvm/lib/System/Alarm.cpp1
-rw-r--r--llvm/lib/System/DynamicLibrary.cpp2
-rw-r--r--llvm/lib/System/MappedFile.cpp1
-rw-r--r--llvm/lib/System/Path.cpp2
-rw-r--r--llvm/lib/System/Process.cpp1
-rw-r--r--llvm/lib/System/Program.cpp1
-rw-r--r--llvm/lib/System/Signals.cpp1
-rw-r--r--llvm/lib/System/TimeValue.cpp1
17 files changed, 39 insertions, 0 deletions
diff --git a/llvm/include/llvm/LinkAllVMCore.h b/llvm/include/llvm/LinkAllVMCore.h
index fa46dbb1f119..ae1e1cd025bb 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 ec44a6df1e20..2b78da6dba2b 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 e053daf44056..fc1bfbe1fba6 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 <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
diff --git a/llvm/include/llvm/System/MappedFile.h b/llvm/include/llvm/System/MappedFile.h
index 9fd0d08357aa..3160427a6cd9 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 14250b5de8ea..b4eaca7abf4e 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 <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
diff --git a/llvm/include/llvm/System/Process.h b/llvm/include/llvm/System/Process.h
index 600d8d5cc3c6..f843af36fc4f 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 0a237bccbcf7..92534de4052f 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 <vector>
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 1d5286f3bd98..21feb5b3161a 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 624eb70176fb..07cb18c13439 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 <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
diff --git a/llvm/lib/System/Alarm.cpp b/llvm/lib/System/Alarm.cpp
index d782b293e334..e0b7f7223a38 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 435513d4ff1e..859092a52af2 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 a91a623d77cd..41b59461d393 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 efadfa9adf22..1246038f84fe 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 644a81e1a992..d69f78ecd176 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 22c38e2657df..e91a3d54c2ec 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 2d0de9b930c0..229dd1434bd5 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 227d67701eb2..8ecfd22da7b6 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)