llvm.org GIT mirror llvm / 84b7df4
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 Dan Gohman 12 years ago
32 changed file(s) with 2 addition(s) and 92 deletion(s). Raw diff Collapse all Expand all
5454 #include "llvm/ADT/STLExtras.h"
5555 #include "llvm/Pass.h"
5656 #include "llvm/Support/CallSite.h"
57 #include "llvm/System/IncludeFile.h"
5758 #include
5859
5960 namespace llvm {
157158 void print(std::ostream *o, const Module *M) const { if (o) print(*o, M); }
158159 void dump() const;
159160
160 // stub - dummy function, just ignore it
161 static int stub;
162161 protected:
163
164162 // destroy - Release memory for the call graph
165163 virtual void destroy();
166164 };
6060
6161 } // End llvm namespace
6262
63 // Make sure that any clients of this file link in PostDominators.cpp
64 FORCE_DEFINING_FILE_TO_BE_LINKED(FindUsedTypes)
65
6663 #endif
10121012
10131013 } // End llvm namespace
10141014
1015 // Make sure that any clients of this file link in LoopInfo.cpp
1016 FORCE_DEFINING_FILE_TO_BE_LINKED(LoopInfo)
1017
10181015 #endif
9191
9292 } // End llvm namespace
9393
94 // Make sure that any clients of this file link in PostDominators.cpp
95 FORCE_DEFINING_FILE_TO_BE_LINKED(PostDominanceFrontier)
96
9794 #endif
2121
2222 #include
2323 #include "llvm/Pass.h"
24 #include "llvm/System/IncludeFile.h"
2425
2526 namespace llvm {
2627
186186
187187 } // End llvm namespace
188188
189 // Make sure that any clients of this file link in LoopInfo.cpp
190 FORCE_DEFINING_FILE_TO_BE_LINKED(MachineLoopInfo)
191
192189 #endif
2727 #include "llvm/Function.h"
2828 #include "llvm/Instructions.h"
2929 #include "llvm/Intrinsics.h"
30 #include "llvm/System/IncludeFile.h"
3130
3231 namespace llvm {
3332 /// IntrinsicInst - A useful wrapper class for inspecting calls to intrinsic
315314
316315 }
317316
318 // Ensure that the IntrinsicInst.cpp file gets added as a dependency of any
319 // file that includes this header
320 FORCE_DEFINING_FILE_TO_BE_LINKED(IntrinsicInst)
321
322317 #endif
2020 #ifndef LLVM_PASS_SUPPORT_H
2121 #define LLVM_PASS_SUPPORT_H
2222
23 #include "llvm/System/IncludeFile.h"
2423 // No need to include Pass.h, we are being included by it!
2524
2625 namespace llvm {
1414
1515 #ifndef LLVM_SUPPORT_DWARF_H
1616 #define LLVM_SUPPORT_DWARF_H
17
18 #include "llvm/System/IncludeFile.h"
1917
2018 namespace llvm {
2119
566564
567565 } // End of namespace llvm
568566
569 FORCE_DEFINING_FILE_TO_BE_LINKED(SupportDwarf)
570
571567 #endif
1313 #ifndef LLVM_SUPPORT_MANGLER_H
1414 #define LLVM_SUPPORT_MANGLER_H
1515
16 #include "llvm/System/IncludeFile.h"
1716 #include
1817 #include
1918 #include
111110
112111 } // End llvm namespace
113112
114 // Force the Mangler.cpp file to be linked when this header is #included
115 FORCE_DEFINING_FILE_TO_BE_LINKED(Mangler)
116
117113 #endif // LLVM_SUPPORT_MANGLER_H
1515
1616 #ifndef LLVM_SYSTEM_ALARM_H
1717 #define LLVM_SYSTEM_ALARM_H
18
19 #include "llvm/System/IncludeFile.h"
2018
2119 namespace llvm {
2220 namespace sys {
4341 } // End sys namespace
4442 } // End llvm namespace
4543
46 FORCE_DEFINING_FILE_TO_BE_LINKED(SystemAlarm)
47
4844 #endif
1414 #define LLVM_SYSTEM_DYNAMIC_LIBRARY_H
1515
1616 #include "llvm/System/Path.h"
17 #include "llvm/System/IncludeFile.h"
1817 #include
1918
2019 namespace llvm {
9594 } // End sys namespace
9695 } // End llvm namespace
9796
98 FORCE_DEFINING_FILE_TO_BE_LINKED(SystemDynamicLibrary)
99
10097 #endif // LLVM_SYSTEM_DYNAMIC_LIBRARY_H
1414 #define LLVM_SYSTEM_MEMORY_H
1515
1616 #include
17 #include "llvm/System/IncludeFile.h"
1817
1918 namespace llvm {
2019 namespace sys {
7069 }
7170 }
7271
73 FORCE_DEFINING_FILE_TO_BE_LINKED(SystemMemory)
74
7572 #endif
1414 #define LLVM_SYSTEM_PROCESS_H
1515
1616 #include "llvm/System/TimeValue.h"
17 #include "llvm/System/IncludeFile.h"
1817
1918 namespace llvm {
2019 namespace sys {
9998 }
10099 }
101100
102 FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProcess)
103
104101 #endif
1414 #define LLVM_SYSTEM_PROGRAM_H
1515
1616 #include "llvm/System/Path.h"
17 #include "llvm/System/IncludeFile.h"
1817 #include
1918
2019 namespace llvm {
8988 }
9089 }
9190
92 FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProgram)
93
9491 #endif
1515 #define LLVM_SYSTEM_SIGNALS_H
1616
1717 #include "llvm/System/Path.h"
18 #include "llvm/System/IncludeFile.h"
1918
2019 namespace llvm {
2120 namespace sys {
4948 } // End sys namespace
5049 } // End llvm namespace
5150
52 FORCE_DEFINING_FILE_TO_BE_LINKED(SystemSignals)
53
5451 #endif
3939 BasicBlock *getUnreachableBlock() const { return UnreachableBlock; }
4040
4141 virtual bool runOnFunction(Function &F);
42
43 // Force linking the impl of this class into anything that uses this header.
44 static int stub;
4542 };
4643
4744 Pass *createUnifyFunctionExitNodesPass();
4845
49 static IncludeFile
50 UNIFY_FUNCTION_EXIT_NODES_INCLUDE_FILE(&UnifyFunctionExitNodes::stub);
51
5246 } // End llvm namespace
5347
5448 #endif
9595 E = UsedTypes.end(); I != E; ++I)
9696 WriteTypeSymbolic(o << " ", *I, M) << "\n";
9797 }
98
99 // Ensure that this file gets linked in when FindUsedTypes.h is used.
100 DEFINING_FILE_FOR(FindUsedTypes)
5050 AU.setPreservesAll();
5151 AU.addRequired();
5252 }
53
54 // Ensure this file gets linked when LoopInfo.h is used.
55 DEFINING_FILE_FOR(LoopInfo)
8383
8484 return S;
8585 }
86
87 // Ensure that this .cpp file gets linked when PostDominators.h is used.
88 DEFINING_FILE_FOR(PostDominanceFrontier)
3939 AU.setPreservesAll();
4040 AU.addRequired();
4141 }
42
43 // Ensure this file gets linked when MachineLoopInfo.h is used.
44 DEFINING_FILE_FOR(MachineLoopInfo)
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Support/Dwarf.h"
14 #include "llvm/System/IncludeFile.h"
1514
1615 #include
1716
581580 } // End of namespace dwarf.
582581
583582 } // End of namespace llvm.
584
585 DEFINING_FILE_FOR(SupportDwarf)
3030 #ifdef LLVM_ON_WIN32
3131 #include "Win32/Alarm.inc"
3232 #endif
33
34 DEFINING_FILE_FOR(SystemAlarm)
158158 }
159159
160160 #endif // LLVM_ON_WIN32
161
162 DEFINING_FILE_FOR(SystemDynamicLibrary)
1313
1414 #include "llvm/System/Memory.h"
1515 #include "llvm/Config/config.h"
16 #include "llvm/System/IncludeFile.h"
1716
1817 namespace llvm {
1918 using namespace sys;
3231 #ifdef LLVM_ON_WIN32
3332 #include "Win32/Memory.inc"
3433 #endif
35
36 DEFINING_FILE_FOR(SystemMemory)
1212
1313 #include "llvm/Config/config.h"
1414 #include "llvm/System/Mutex.h"
15 #include "llvm/System/IncludeFile.h"
1615
1716 //===----------------------------------------------------------------------===//
1817 //=== WARNING: Implementation here must contain only TRULY operating system
3030 #ifdef LLVM_ON_WIN32
3131 #include "Win32/Process.inc"
3232 #endif
33
34 DEFINING_FILE_FOR(SystemProcess)
3030 #ifdef LLVM_ON_WIN32
3131 #include "Win32/Program.inc"
3232 #endif
33
34 DEFINING_FILE_FOR(SystemProgram)
3131 #ifdef LLVM_ON_WIN32
3232 #include "Win32/Signals.inc"
3333 #endif
34
35 DEFINING_FILE_FOR(SystemSignals)
2626 char UnifyFunctionExitNodes::ID = 0;
2727 static RegisterPass
2828 X("mergereturn", "Unify function exit nodes");
29
30 int UnifyFunctionExitNodes::stub;
3129
3230 Pass *llvm::createUnifyFunctionExitNodesPass() {
3331 return new UnifyFunctionExitNodes();
7373 ConstantStruct *CS = cast(GV->getInitializer());
7474 return CS->getOperand(4)->getStringValue();
7575 }
76
77 //===----------------------------------------------------------------------===//
78 /// Ensure that users of IntrinsicInst.h will link with this module.
79 DEFINING_FILE_FOR(IntrinsicInst)
210210 for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
211211 InsertName(I, Names);
212212 }
213
214 // Cause this file to be linked in when Support/Mangler.h is #included
215 DEFINING_FILE_FOR(Mangler)