diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/CallGraph.h | 4 | ||||
-rw-r--r-- | include/llvm/Analysis/FindUsedTypes.h | 3 | ||||
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 3 | ||||
-rw-r--r-- | include/llvm/Analysis/PostDominators.h | 3 | ||||
-rw-r--r-- | include/llvm/Analysis/ValueNumbering.h | 1 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineLoopInfo.h | 3 | ||||
-rw-r--r-- | include/llvm/IntrinsicInst.h | 5 | ||||
-rw-r--r-- | include/llvm/PassSupport.h | 1 | ||||
-rw-r--r-- | include/llvm/Support/Dwarf.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/Mangler.h | 4 | ||||
-rw-r--r-- | include/llvm/System/Alarm.h | 4 | ||||
-rw-r--r-- | include/llvm/System/DynamicLibrary.h | 3 | ||||
-rw-r--r-- | include/llvm/System/Memory.h | 3 | ||||
-rw-r--r-- | include/llvm/System/Process.h | 3 | ||||
-rw-r--r-- | include/llvm/System/Program.h | 3 | ||||
-rw-r--r-- | include/llvm/System/Signals.h | 3 | ||||
-rw-r--r-- | include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | 6 |
17 files changed, 2 insertions, 54 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 88449ab258..3fe03b5e74 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -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(); }; diff --git a/include/llvm/Analysis/FindUsedTypes.h b/include/llvm/Analysis/FindUsedTypes.h index b0d38c509c..d3e62e2696 100644 --- a/include/llvm/Analysis/FindUsedTypes.h +++ b/include/llvm/Analysis/FindUsedTypes.h @@ -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 diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index c2b1ac6e10..28748b0e54 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -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 diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 27c2b26c8c..51b3e807d8 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -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 diff --git a/include/llvm/Analysis/ValueNumbering.h b/include/llvm/Analysis/ValueNumbering.h index 3d7130d3f4..72452acda1 100644 --- a/include/llvm/Analysis/ValueNumbering.h +++ b/include/llvm/Analysis/ValueNumbering.h @@ -22,6 +22,7 @@ #include <vector> #include "llvm/Pass.h" +#include "llvm/System/IncludeFile.h" namespace llvm { diff --git a/include/llvm/CodeGen/MachineLoopInfo.h b/include/llvm/CodeGen/MachineLoopInfo.h index 20f32c3e67..8b46825f25 100644 --- a/include/llvm/CodeGen/MachineLoopInfo.h +++ b/include/llvm/CodeGen/MachineLoopInfo.h @@ -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 diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h index 5823a23b1c..d3a53168f1 100644 --- a/include/llvm/IntrinsicInst.h +++ b/include/llvm/IntrinsicInst.h @@ -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 diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 68fd901048..29e7374815 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -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 { diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h index 79f30e9fa7..01bfc3f353 100644 --- a/include/llvm/Support/Dwarf.h +++ b/include/llvm/Support/Dwarf.h @@ -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 diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h index 87b4ae69b1..39ac26dd1b 100644 --- a/include/llvm/Support/Mangler.h +++ b/include/llvm/Support/Mangler.h @@ -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 diff --git a/include/llvm/System/Alarm.h b/include/llvm/System/Alarm.h index 708472ceee..718ab8f3bb 100644 --- a/include/llvm/System/Alarm.h +++ b/include/llvm/System/Alarm.h @@ -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 diff --git a/include/llvm/System/DynamicLibrary.h b/include/llvm/System/DynamicLibrary.h index e1c6a40f1c..409a9d279c 100644 --- a/include/llvm/System/DynamicLibrary.h +++ b/include/llvm/System/DynamicLibrary.h @@ -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 diff --git a/include/llvm/System/Memory.h b/include/llvm/System/Memory.h index b4ebf0e87f..52e1f3f14b 100644 --- a/include/llvm/System/Memory.h +++ b/include/llvm/System/Memory.h @@ -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 diff --git a/include/llvm/System/Process.h b/include/llvm/System/Process.h index 2f78e21455..f98a3612c6 100644 --- a/include/llvm/System/Process.h +++ b/include/llvm/System/Process.h @@ -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 diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h index 69e38321a1..3e9a1f2835 100644 --- a/include/llvm/System/Program.h +++ b/include/llvm/System/Program.h @@ -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 diff --git a/include/llvm/System/Signals.h b/include/llvm/System/Signals.h index 416a4c8f9d..197e4e1d2d 100644 --- a/include/llvm/System/Signals.h +++ b/include/llvm/System/Signals.h @@ -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 diff --git a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h index 8e2bc0eb96..598adfc0bc 100644 --- a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h +++ b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h @@ -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 |