aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-07-26 16:18:00 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-07-26 16:18:00 +0000
commit7107c3badfe78ec89dcab6c02cf1b1bcaccc42a8 (patch)
tree9ef4b2b152223b366915fdfd0a572f2c7ef7f9cb /include/llvm/System
parent8884060a258729fadcfbd7433082e50c25291f8a (diff)
downloadexternal_llvm-7107c3badfe78ec89dcab6c02cf1b1bcaccc42a8.zip
external_llvm-7107c3badfe78ec89dcab6c02cf1b1bcaccc42a8.tar.gz
external_llvm-7107c3badfe78ec89dcab6c02cf1b1bcaccc42a8.tar.bz2
For 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/IncludeFile.h6
-rw-r--r--include/llvm/System/Memory.h3
-rw-r--r--include/llvm/System/Mutex.h4
3 files changed, 10 insertions, 3 deletions
diff --git a/include/llvm/System/IncludeFile.h b/include/llvm/System/IncludeFile.h
index 798c6b4..c9f3882 100644
--- a/include/llvm/System/IncludeFile.h
+++ b/include/llvm/System/IncludeFile.h
@@ -1,4 +1,4 @@
-//===- llvm/Support/IncludeFile.h - Ensure Linking Of Library ---*- C++ -*-===//
+//===- llvm/System/IncludeFile.h - Ensure Linking Of Library ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_SUPPORT_INCLUDEFILE_H
-#define LLVM_SUPPORT_INCLUDEFILE_H
+#ifndef LLVM_SYSTEM_INCLUDEFILE_H
+#define LLVM_SYSTEM_INCLUDEFILE_H
/// This macro is the public interface that IncludeFile.h exports. This gives
/// us the option to implement the "link the definition" capability in any
diff --git a/include/llvm/System/Memory.h b/include/llvm/System/Memory.h
index 27d7c0c..c343177 100644
--- a/include/llvm/System/Memory.h
+++ b/include/llvm/System/Memory.h
@@ -15,6 +15,7 @@
#define LLVM_SYSTEM_MEMORY_H
#include <string>
+#include "llvm/System/IncludeFile.h"
namespace llvm {
namespace sys {
@@ -70,4 +71,6 @@ namespace sys {
}
}
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemMemory)
+
#endif
diff --git a/include/llvm/System/Mutex.h b/include/llvm/System/Mutex.h
index 94dd811..27bcea1 100644
--- a/include/llvm/System/Mutex.h
+++ b/include/llvm/System/Mutex.h
@@ -14,6 +14,8 @@
#ifndef LLVM_SYSTEM_MUTEX_H
#define LLVM_SYSTEM_MUTEX_H
+#include "llvm/System/IncludeFile.h"
+
namespace llvm
{
namespace sys
@@ -81,4 +83,6 @@ namespace llvm
}
}
+FORCE_DEFINING_FILE_TO_BE_LINKED(SystemMutex)
+
#endif