Remove uses of llvm/System/IncludeFile.h that are no longer needed.
authorDan Gohman <gohman@apple.com>
Tue, 6 May 2008 01:32:53 +0000 (01:32 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 6 May 2008 01:32:53 +0000 (01:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50695 91177308-0d34-0410-b5e6-96231b3b80d8

32 files changed:
include/llvm/Analysis/CallGraph.h
include/llvm/Analysis/FindUsedTypes.h
include/llvm/Analysis/LoopInfo.h
include/llvm/Analysis/PostDominators.h
include/llvm/Analysis/ValueNumbering.h
include/llvm/CodeGen/MachineLoopInfo.h
include/llvm/IntrinsicInst.h
include/llvm/PassSupport.h
include/llvm/Support/Dwarf.h
include/llvm/Support/Mangler.h
include/llvm/System/Alarm.h
include/llvm/System/DynamicLibrary.h
include/llvm/System/Memory.h
include/llvm/System/Process.h
include/llvm/System/Program.h
include/llvm/System/Signals.h
include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
lib/Analysis/IPA/FindUsedTypes.cpp
lib/Analysis/LoopInfo.cpp
lib/Analysis/PostDominators.cpp
lib/CodeGen/MachineLoopInfo.cpp
lib/Support/Dwarf.cpp
lib/System/Alarm.cpp
lib/System/DynamicLibrary.cpp
lib/System/Memory.cpp
lib/System/Mutex.cpp
lib/System/Process.cpp
lib/System/Program.cpp
lib/System/Signals.cpp
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
lib/VMCore/IntrinsicInst.cpp
lib/VMCore/Mangler.cpp

index 88449ab2580f2e08cd2502b586ca7027d5dd61e5..3fe03b5e74c98702d0716916ee8affb064f409ad 100644 (file)
@@ -55,6 +55,7 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/CallSite.h"
+#include "llvm/System/IncludeFile.h"
 #include <map>
 
 namespace llvm {
@@ -158,10 +159,7 @@ public:
   void print(std::ostream *o, const Module *M) const { if (o) print(*o, M); }
   void dump() const;
   
-  // stub - dummy function, just ignore it
-  static int stub;
 protected:
-
   // destroy - Release memory for the call graph
   virtual void destroy();
 };
index b0d38c509c1f17e27a7cc3c5d7cb7dab289dbcb3..d3e62e269654784606fce9752e91acbb324fcd19 100644 (file)
@@ -61,7 +61,4 @@ public:
 
 } // End llvm namespace
 
-// Make sure that any clients of this file link in PostDominators.cpp
-FORCE_DEFINING_FILE_TO_BE_LINKED(FindUsedTypes)
-
 #endif
index c2b1ac6e10751aef5b11e9a8370c72d6ee06957a..28748b0e541e3ffbbff341d0e180b7d0d4c194ef 100644 (file)
@@ -1013,7 +1013,4 @@ void LoopBase<BlockT>::addBasicBlockToLoop(BlockT *NewBB,
 
 } // End llvm namespace
 
-// Make sure that any clients of this file link in LoopInfo.cpp
-FORCE_DEFINING_FILE_TO_BE_LINKED(LoopInfo)
-
 #endif
index 27c2b26c8c2d34aeecdf23dbbc58f33427c4458c..51b3e807d8b41937000ade48aa7339978da77b37 100644 (file)
@@ -92,7 +92,4 @@ private:
 
 } // End llvm namespace
 
-// Make sure that any clients of this file link in PostDominators.cpp
-FORCE_DEFINING_FILE_TO_BE_LINKED(PostDominanceFrontier)
-
 #endif
index 3d7130d3f45d856d54e2e2e38ff8a0c95b180062..72452acda15bdb7d4499fac5b9d39332f0459a1d 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <vector>
 #include "llvm/Pass.h"
+#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 
index 20f32c3e67f443527f829fc438eac633408284ba..8b46825f2570b55a57efb358e00a728326ae32f8 100644 (file)
@@ -187,7 +187,4 @@ template <> struct GraphTraits<MachineLoop*> {
 
 } // End llvm namespace
 
-// Make sure that any clients of this file link in LoopInfo.cpp
-FORCE_DEFINING_FILE_TO_BE_LINKED(MachineLoopInfo)
-
 #endif
index 5823a23b1c9a931e9836c9966758b2960acb4550..d3a53168f1930e880f992b67b8f001f7a05b9025 100644 (file)
@@ -28,7 +28,6 @@
 #include "llvm/Function.h"
 #include "llvm/Instructions.h"
 #include "llvm/Intrinsics.h"
-#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
   /// IntrinsicInst - A useful wrapper class for inspecting calls to intrinsic
@@ -316,8 +315,4 @@ namespace llvm {
 
 }
 
-// Ensure that the IntrinsicInst.cpp file gets added as a dependency of any 
-// file that includes this header
-FORCE_DEFINING_FILE_TO_BE_LINKED(IntrinsicInst)
-
 #endif
index 68fd901048fdad37dcf0f1943da29b0f0bfe388c..29e7374815373d0af8ae405d500c8699262982d4 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef LLVM_PASS_SUPPORT_H
 #define LLVM_PASS_SUPPORT_H
 
-#include "llvm/System/IncludeFile.h"
 // No need to include Pass.h, we are being included by it!
 
 namespace llvm {
index 79f30e9fa7b9d392ae78f778f9ddec310d14b30a..01bfc3f35371de44e1eed249d37cba3b47e0868e 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef LLVM_SUPPORT_DWARF_H
 #define LLVM_SUPPORT_DWARF_H
 
-#include "llvm/System/IncludeFile.h"
-
 namespace llvm {
 
 namespace dwarf {
@@ -567,6 +565,4 @@ const char *CallFrameString(unsigned Encoding);
 
 } // End of namespace llvm
 
-FORCE_DEFINING_FILE_TO_BE_LINKED(SupportDwarf)
-
 #endif
index 87b4ae69b10dff20966ecae88515ac419a6f8b9c..39ac26dd1bf2bcc47dac746e30ef8a60f6a0329b 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef LLVM_SUPPORT_MANGLER_H
 #define LLVM_SUPPORT_MANGLER_H
 
-#include "llvm/System/IncludeFile.h"
 #include <map>
 #include <set>
 #include <string>
@@ -112,7 +111,4 @@ private:
 
 } // End llvm namespace
 
-// Force the Mangler.cpp file to be linked when this header is #included
-FORCE_DEFINING_FILE_TO_BE_LINKED(Mangler)
-
 #endif // LLVM_SUPPORT_MANGLER_H
index 708472ceee3497e4f4c1710e9e1139f102b2fde1..718ab8f3bb1a0e312226eb1a2584c309ed7a06a7 100644 (file)
@@ -17,8 +17,6 @@
 #ifndef LLVM_SYSTEM_ALARM_H
 #define LLVM_SYSTEM_ALARM_H
 
-#include "llvm/System/IncludeFile.h"
-
 namespace llvm {
 namespace sys {
 
@@ -44,6 +42,4 @@ namespace sys {
 } // End sys namespace
 } // End llvm namespace
 
-FORCE_DEFINING_FILE_TO_BE_LINKED(SystemAlarm)
-
 #endif
index e1c6a40f1cd446d012a7a45c744e03c544667065..409a9d279c2dacbbed532d83a974513ce7e02670 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_SYSTEM_DYNAMIC_LIBRARY_H
 
 #include "llvm/System/Path.h"
-#include "llvm/System/IncludeFile.h"
 #include <string>
 
 namespace llvm {
@@ -96,6 +95,4 @@ namespace sys {
 } // End sys namespace
 } // End llvm namespace
 
-FORCE_DEFINING_FILE_TO_BE_LINKED(SystemDynamicLibrary)
-
 #endif // LLVM_SYSTEM_DYNAMIC_LIBRARY_H
index b4ebf0e87f81b142762885566a9d225d66a6acb0..52e1f3f14b7ea8e189314e25706d4cc0d9a8a88f 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_SYSTEM_MEMORY_H
 
 #include <string>
-#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 namespace sys {
@@ -71,6 +70,4 @@ namespace sys {
 }
 }
 
-FORCE_DEFINING_FILE_TO_BE_LINKED(SystemMemory)
-
 #endif
index 2f78e214552c0080d5c8471510b4507442335a70..f98a3612c6c7c516c0e0c3343a8f696e3e62d822 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_SYSTEM_PROCESS_H
 
 #include "llvm/System/TimeValue.h"
-#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 namespace sys {
@@ -100,6 +99,4 @@ namespace sys {
 }
 }
 
-FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProcess)
-
 #endif
index 69e38321a1b5a4806920e6f8c1ff0aa1ee8004fd..3e9a1f2835ef9540abbf1ad8f5099db0904b7e4d 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_SYSTEM_PROGRAM_H
 
 #include "llvm/System/Path.h"
-#include "llvm/System/IncludeFile.h"
 #include <vector>
 
 namespace llvm {
@@ -90,6 +89,4 @@ namespace sys {
 }
 }
 
-FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProgram)
-
 #endif
index 416a4c8f9da680c9253d57abc1f53494f0c267df..197e4e1d2d61324eef79d4857b989a20be80f737 100644 (file)
@@ -16,7 +16,6 @@
 #define LLVM_SYSTEM_SIGNALS_H
 
 #include "llvm/System/Path.h"
-#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 namespace sys {
@@ -50,6 +49,4 @@ namespace sys {
 } // End sys namespace
 } // End llvm namespace
 
-FORCE_DEFINING_FILE_TO_BE_LINKED(SystemSignals)
-
 #endif
index 8e2bc0eb965d738e1aa2153345eed6927b59cd32..598adfc0bce01bf6a940f9cdc0869b1451ee35db 100644 (file)
@@ -40,16 +40,10 @@ public:
   BasicBlock *getUnreachableBlock() const { return UnreachableBlock; }
 
   virtual bool runOnFunction(Function &F);
-  
-  // Force linking the impl of this class into anything that uses this header.
-  static int stub;
 };
 
 Pass *createUnifyFunctionExitNodesPass();
 
-static IncludeFile
-UNIFY_FUNCTION_EXIT_NODES_INCLUDE_FILE(&UnifyFunctionExitNodes::stub);
-
 } // End llvm namespace
 
 #endif
index cd61842f7c296a8a0c60803f7d75777bf44fd4a8..0a28cd5153c81c80064ba4a2b6314ea942581dc7 100644 (file)
@@ -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)
index e067c1768fe1714ef962daf435eb2d2bada671f0..b6c6c5ffc0b837fa7c2ea14ff517608be5713787 100644 (file)
@@ -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)
index c72b140a6224fec085d184253846e1dd8bd88d7f..cfa1b463295e3c219743e65b2a2f8e878d9d51b1 100644 (file)
@@ -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)
index 9900728d3e9f658ff9e66d745837836ffd463678..007317ccb59948bf9ca429be18e06d56aef88169 100644 (file)
@@ -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)
index 53d0ecbcbed0d03a5337defc274a5bd038541bd6..f3f183436ec9ff67a9441b8f1815a14d332c32ee 100644 (file)
@@ -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)
index 57a8b08185672cfbe76b458f59154be66fe6e9e9..0014ca716b33333fa4990e28d5aa75c2dfcbbe09 100644 (file)
@@ -31,5 +31,3 @@ using namespace sys;
 #ifdef LLVM_ON_WIN32
 #include "Win32/Alarm.inc"
 #endif
-
-DEFINING_FILE_FOR(SystemAlarm)
index 7af718d490dade0305fb299025548bacb941282c..572ba496e191451d201a7c9cd3195911f8909fab 100644 (file)
@@ -159,5 +159,3 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
 }
 
 #endif // LLVM_ON_WIN32
-
-DEFINING_FILE_FOR(SystemDynamicLibrary)
index a0aa5432688ea01a1ca865099ec44c45aab4de7f..054cc966a3e7b71bb1dd75d6d634bed11d6f9111 100644 (file)
@@ -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)
index 0b7c5b57459730d23ea9800e18a5dfeb53b74e78..3bef7ce0b02e4fd7656614b7549f13ec2af6e9fd 100644 (file)
@@ -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
index 4a5f9bafdd7585bcd973ae387fb09f5c2cb89277..e93b2af4c12bbdc9d9fd494fe588b53ad2d12391 100644 (file)
@@ -31,5 +31,3 @@ using namespace sys;
 #ifdef LLVM_ON_WIN32
 #include "Win32/Process.inc"
 #endif
-
-DEFINING_FILE_FOR(SystemProcess)
index fb00dc958fb9390d3b8bde73e417b80ebeaed66b..eb289d81b2e170189d4b4ef55dd503a36b207ef6 100644 (file)
@@ -31,5 +31,3 @@ using namespace sys;
 #ifdef LLVM_ON_WIN32
 #include "Win32/Program.inc"
 #endif
-
-DEFINING_FILE_FOR(SystemProgram)
index fddb85410d4434ccba1cc4b78eb6440d311a337e..d345b0a9aed496acf69a5058fb780cec331fad8c 100644 (file)
@@ -32,5 +32,3 @@ using namespace sys;
 #ifdef LLVM_ON_WIN32
 #include "Win32/Signals.inc"
 #endif
-
-DEFINING_FILE_FOR(SystemSignals)
index 6cdaba53a050f50d28934dc002644e21211bce40..c024d32374ebc91b1da1d220ce6c9fc2e093587c 100644 (file)
@@ -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();
 }
index fb7a74b5f779b0dada9de28efb5ba764caa19eed..94f582911e13534f25d37d1fcfb24a9d9dd1ceae 100644 (file)
@@ -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)
index 7448e7de444ae78d462fe3be5535bf672db9688a..0437508f394240cb210274c3070ae6455f265409 100644 (file)
@@ -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)