summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-06 01:32:53 +0000
committerDan Gohman <gohman@apple.com>2008-05-06 01:32:53 +0000
commit84b7df43fb098268f6ce37a3e32bcc2f455ecf96 (patch)
tree78dbc6bd9a30c6ecaefb604e9372d419da60af28 /lib
parent54eed371314af403ef8307b386b3b5b46c8aa6fb (diff)
downloadllvm-84b7df43fb098268f6ce37a3e32bcc2f455ecf96.tar.gz
llvm-84b7df43fb098268f6ce37a3e32bcc2f455ecf96.tar.bz2
llvm-84b7df43fb098268f6ce37a3e32bcc2f455ecf96.tar.xz
Remove uses of llvm/System/IncludeFile.h that are no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/IPA/FindUsedTypes.cpp3
-rw-r--r--lib/Analysis/LoopInfo.cpp3
-rw-r--r--lib/Analysis/PostDominators.cpp3
-rw-r--r--lib/CodeGen/MachineLoopInfo.cpp3
-rw-r--r--lib/Support/Dwarf.cpp3
-rw-r--r--lib/System/Alarm.cpp2
-rw-r--r--lib/System/DynamicLibrary.cpp2
-rw-r--r--lib/System/Memory.cpp3
-rw-r--r--lib/System/Mutex.cpp1
-rw-r--r--lib/System/Process.cpp2
-rw-r--r--lib/System/Program.cpp2
-rw-r--r--lib/System/Signals.cpp2
-rw-r--r--lib/Transforms/Utils/UnifyFunctionExitNodes.cpp2
-rw-r--r--lib/VMCore/IntrinsicInst.cpp4
-rw-r--r--lib/VMCore/Mangler.cpp3
15 files changed, 0 insertions, 38 deletions
diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp
index cd61842f7c..0a28cd5153 100644
--- a/lib/Analysis/IPA/FindUsedTypes.cpp
+++ b/lib/Analysis/IPA/FindUsedTypes.cpp
@@ -96,6 +96,3 @@ void FindUsedTypes::print(std::ostream &o, const Module *M) const {
E = UsedTypes.end(); I != E; ++I)
WriteTypeSymbolic(o << " ", *I, M) << "\n";
}
-
-// Ensure that this file gets linked in when FindUsedTypes.h is used.
-DEFINING_FILE_FOR(FindUsedTypes)
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp
index e067c1768f..b6c6c5ffc0 100644
--- a/lib/Analysis/LoopInfo.cpp
+++ b/lib/Analysis/LoopInfo.cpp
@@ -51,6 +51,3 @@ void LoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequired<DominatorTree>();
}
-
-// Ensure this file gets linked when LoopInfo.h is used.
-DEFINING_FILE_FOR(LoopInfo)
diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp
index c72b140a62..cfa1b46329 100644
--- a/lib/Analysis/PostDominators.cpp
+++ b/lib/Analysis/PostDominators.cpp
@@ -84,6 +84,3 @@ PostDominanceFrontier::calculate(const PostDominatorTree &DT,
return S;
}
-
-// Ensure that this .cpp file gets linked when PostDominators.h is used.
-DEFINING_FILE_FOR(PostDominanceFrontier)
diff --git a/lib/CodeGen/MachineLoopInfo.cpp b/lib/CodeGen/MachineLoopInfo.cpp
index 9900728d3e..007317ccb5 100644
--- a/lib/CodeGen/MachineLoopInfo.cpp
+++ b/lib/CodeGen/MachineLoopInfo.cpp
@@ -40,6 +40,3 @@ void MachineLoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequired<MachineDominatorTree>();
}
-
-// Ensure this file gets linked when MachineLoopInfo.h is used.
-DEFINING_FILE_FOR(MachineLoopInfo)
diff --git a/lib/Support/Dwarf.cpp b/lib/Support/Dwarf.cpp
index 53d0ecbcbe..f3f183436e 100644
--- a/lib/Support/Dwarf.cpp
+++ b/lib/Support/Dwarf.cpp
@@ -12,7 +12,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/Dwarf.h"
-#include "llvm/System/IncludeFile.h"
#include <cassert>
@@ -582,5 +581,3 @@ const char *CallFrameString(unsigned Encoding) {
} // End of namespace dwarf.
} // End of namespace llvm.
-
-DEFINING_FILE_FOR(SupportDwarf)
diff --git a/lib/System/Alarm.cpp b/lib/System/Alarm.cpp
index 57a8b08185..0014ca716b 100644
--- a/lib/System/Alarm.cpp
+++ b/lib/System/Alarm.cpp
@@ -31,5 +31,3 @@ using namespace sys;
#ifdef LLVM_ON_WIN32
#include "Win32/Alarm.inc"
#endif
-
-DEFINING_FILE_FOR(SystemAlarm)
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp
index 7af718d490..572ba496e1 100644
--- a/lib/System/DynamicLibrary.cpp
+++ b/lib/System/DynamicLibrary.cpp
@@ -159,5 +159,3 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
}
#endif // LLVM_ON_WIN32
-
-DEFINING_FILE_FOR(SystemDynamicLibrary)
diff --git a/lib/System/Memory.cpp b/lib/System/Memory.cpp
index a0aa543268..054cc966a3 100644
--- a/lib/System/Memory.cpp
+++ b/lib/System/Memory.cpp
@@ -14,7 +14,6 @@
#include "llvm/System/Memory.h"
#include "llvm/Config/config.h"
-#include "llvm/System/IncludeFile.h"
namespace llvm {
using namespace sys;
@@ -33,5 +32,3 @@ using namespace sys;
#ifdef LLVM_ON_WIN32
#include "Win32/Memory.inc"
#endif
-
-DEFINING_FILE_FOR(SystemMemory)
diff --git a/lib/System/Mutex.cpp b/lib/System/Mutex.cpp
index 0b7c5b5745..3bef7ce0b0 100644
--- a/lib/System/Mutex.cpp
+++ b/lib/System/Mutex.cpp
@@ -13,7 +13,6 @@
#include "llvm/Config/config.h"
#include "llvm/System/Mutex.h"
-#include "llvm/System/IncludeFile.h"
//===----------------------------------------------------------------------===//
//=== WARNING: Implementation here must contain only TRULY operating system
diff --git a/lib/System/Process.cpp b/lib/System/Process.cpp
index 4a5f9bafdd..e93b2af4c1 100644
--- a/lib/System/Process.cpp
+++ b/lib/System/Process.cpp
@@ -31,5 +31,3 @@ using namespace sys;
#ifdef LLVM_ON_WIN32
#include "Win32/Process.inc"
#endif
-
-DEFINING_FILE_FOR(SystemProcess)
diff --git a/lib/System/Program.cpp b/lib/System/Program.cpp
index fb00dc958f..eb289d81b2 100644
--- a/lib/System/Program.cpp
+++ b/lib/System/Program.cpp
@@ -31,5 +31,3 @@ using namespace sys;
#ifdef LLVM_ON_WIN32
#include "Win32/Program.inc"
#endif
-
-DEFINING_FILE_FOR(SystemProgram)
diff --git a/lib/System/Signals.cpp b/lib/System/Signals.cpp
index fddb85410d..d345b0a9ae 100644
--- a/lib/System/Signals.cpp
+++ b/lib/System/Signals.cpp
@@ -32,5 +32,3 @@ using namespace sys;
#ifdef LLVM_ON_WIN32
#include "Win32/Signals.inc"
#endif
-
-DEFINING_FILE_FOR(SystemSignals)
diff --git a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
index 6cdaba53a0..c024d32374 100644
--- a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
+++ b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
@@ -28,8 +28,6 @@ char UnifyFunctionExitNodes::ID = 0;
static RegisterPass<UnifyFunctionExitNodes>
X("mergereturn", "Unify function exit nodes");
-int UnifyFunctionExitNodes::stub;
-
Pass *llvm::createUnifyFunctionExitNodesPass() {
return new UnifyFunctionExitNodes();
}
diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp
index fb7a74b5f7..94f582911e 100644
--- a/lib/VMCore/IntrinsicInst.cpp
+++ b/lib/VMCore/IntrinsicInst.cpp
@@ -74,7 +74,3 @@ std::string DbgStopPointInst::getDirectory() const {
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
return CS->getOperand(4)->getStringValue();
}
-
-//===----------------------------------------------------------------------===//
-/// Ensure that users of IntrinsicInst.h will link with this module.
-DEFINING_FILE_FOR(IntrinsicInst)
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp
index 7448e7de44..0437508f39 100644
--- a/lib/VMCore/Mangler.cpp
+++ b/lib/VMCore/Mangler.cpp
@@ -211,6 +211,3 @@ Mangler::Mangler(Module &M, const char *prefix)
for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
InsertName(I, Names);
}
-
-// Cause this file to be linked in when Support/Mangler.h is #included
-DEFINING_FILE_FOR(Mangler)