[Allocator] Stop forward-declaring BumpPtrAllocator in a few places.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 30 Mar 2014 11:36:29 +0000 (11:36 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 30 Mar 2014 11:36:29 +0000 (11:36 +0000)
This is a necessary step to lifting some of its configuration into
template parameters rather than runtime parameters.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205140 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/FoldingSet.h
include/llvm/CodeGen/MachineSSAUpdater.h
include/llvm/Support/ArrayRecycler.h
include/llvm/Support/Recycler.h

index 9228ec555cdb1d8377450c5b8c5f226ee1deeea8..188010d8ba4ada006dad0f467b5e6b8668585022 100644 (file)
 
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Allocator.h"
 #include "llvm/Support/DataTypes.h"
 
 namespace llvm {
   class APFloat;
   class APInt;
-  class BumpPtrAllocator;
 
 /// This folding set used for two purposes:
 ///   1. Given information about a node we want to create, look up the unique
index 77a2256c2ea0871a6048070558fe74babe2f95da..8fc367e258c0db2713338612f3b38a6cb7e3da3e 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_CODEGEN_MACHINESSAUPDATER_H
 #define LLVM_CODEGEN_MACHINESSAUPDATER_H
 
+#include "llvm/Support/Allocator.h"
 #include "llvm/Support/Compiler.h"
 
 namespace llvm {
@@ -26,7 +27,6 @@ namespace llvm {
   class TargetRegisterClass;
   template<typename T> class SmallVectorImpl;
   template<typename T> class SSAUpdaterTraits;
-  class BumpPtrAllocator;
 
 /// MachineSSAUpdater - This class updates SSA form for a set of virtual
 /// registers defined in multiple blocks.  This is used when code duplication
index 19059b32cd3af7c05baeb11ee284985481a337b9..e97433222b4addafa9d82a6a49adb3866777e0d4 100644 (file)
 #define LLVM_SUPPORT_ARRAYRECYCLER_H
 
 #include "llvm/ADT/SmallVector.h"
+#include "llvm/Support/Allocator.h"
 #include "llvm/Support/MathExtras.h"
 
 namespace llvm {
 
-class BumpPtrAllocator;
-
 /// Recycle small arrays allocated from a BumpPtrAllocator.
 ///
 /// Arrays are allocated in a small number of fixed sizes. For each supported
index 129e8efd2b218b3eb87fb91f408d4e291fa64a8f..e97f36a735fdf64ece518c5afac4200565b19dd6 100644 (file)
 
 #include "llvm/ADT/ilist.h"
 #include "llvm/Support/AlignOf.h"
+#include "llvm/Support/Allocator.h"
 #include "llvm/Support/ErrorHandling.h"
 #include <cassert>
 
 namespace llvm {
 
-class BumpPtrAllocator;
-
 /// PrintRecyclingAllocatorStats - Helper for RecyclingAllocator for
 /// printing statistics.
 ///