Make a few more LLVM headers parsable as standalone headers.
authorDouglas Gregor <dgregor@apple.com>
Thu, 5 Nov 2009 23:01:30 +0000 (23:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 5 Nov 2009 23:01:30 +0000 (23:01 +0000)
Fix some problems with the hidden copy constructors for
ImmutableMap/ImmutableSet found by Clang++.

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

include/llvm/ADT/ImmutableMap.h
include/llvm/ADT/ImmutableSet.h
include/llvm/ADT/PriorityQueue.h
include/llvm/ADT/Trie.h
include/llvm/CodeGen/BinaryObject.h
include/llvm/CodeGen/LinkAllAsmWriterComponents.h
include/llvm/CodeGen/MachORelocation.h
include/llvm/CodeGen/MachineCodeInfo.h
include/llvm/CodeGen/MachineMemOperand.h
include/llvm/Transforms/RSProfiling.h
include/llvm/Transforms/Utils/SSI.h

index 742e2321865dbbef357c5c7f1e3ed10517fe21b9..fc9fe8b5a597a1bd4594ea39c5fc87408c59dcff 100644 (file)
@@ -102,8 +102,8 @@ public:
     }
 
   private:
-    Factory(const Factory& RHS) {};
-    void operator=(const Factory& RHS) {};
+    Factory(const Factory& RHS); // DO NOT IMPLEMENT
+    void operator=(const Factory& RHS); // DO NOT IMPLEMENT
   };
 
   friend class Factory;
index 16b4403e7f2f581a2a491a2c6ba06e4814692aee..676a1989fdb87b3e81ad5bdeff5dd6b5b17a0c5c 100644 (file)
@@ -988,8 +988,8 @@ public:
     BumpPtrAllocator& getAllocator() { return F.getAllocator(); }
 
   private:
-    Factory(const Factory& RHS) {}
-    void operator=(const Factory& RHS) {}
+    Factory(const Factory& RHS); // DO NOT IMPLEMENT
+    void operator=(const Factory& RHS); // DO NOT IMPLEMENT
   };
 
   friend class Factory;
index a8809dc0b267629e77e66041efc0f24e85509528..bf8a687081638fdbdc7daa535751ccae1bf1928a 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_ADT_PRIORITY_QUEUE_H
 #define LLVM_ADT_PRIORITY_QUEUE_H
 
+#include <algorithm>
 #include <queue>
 
 namespace llvm {
index cf92862c20d995ce26106eaab4ae21949f6e2912..b415990b2225134f31e9699dac52f5c12a3d15c2 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/ADT/GraphTraits.h"
 #include "llvm/Support/DOTGraphTraits.h"
 
+#include <cassert>
 #include <vector>
 
 namespace llvm {
index 9e2ef18202b0869136d3d43da477b04f0272ac21..3ade7c9e47cd113e45c3a76d6e6c6bdf810c7ce9 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef LLVM_CODEGEN_BINARYOBJECT_H
 #define LLVM_CODEGEN_BINARYOBJECT_H
 
+#include "llvm/CodeGen/MachineRelocation.h"
 #include "llvm/System/DataTypes.h"
 
 #include <string>
@@ -22,7 +23,6 @@
 
 namespace llvm {
 
-class MachineRelocation;
 typedef std::vector<uint8_t> BinaryData;
 
 class BinaryObject {
index 1673c897a7082b13036cf31cb78531c7ae874e10..7d1b1fe477a5cf06dc83f7cde3e6b43058733b4d 100644 (file)
@@ -16,6 +16,7 @@
 #define LLVM_CODEGEN_LINKALLASMWRITERCOMPONENTS_H
 
 #include "llvm/CodeGen/GCs.h"
+#include <cstdlib>
 
 namespace {
   struct ForceAsmWriterLinking {
index d4027cc0b78049629878bd65631fa634d74bc57d..27306c62d888295da6ba701e20e75d221b274302 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef LLVM_CODEGEN_MACHO_RELOCATION_H
 #define LLVM_CODEGEN_MACHO_RELOCATION_H
 
+#include "llvm/System/DataTypes.h"
+
 namespace llvm {
 
   /// MachORelocation - This struct contains information about each relocation
index 024e6027037e549d5750d212ccb55008e3bc2704..a75c02a052e78892e0bb455862b9ea11f19e972d 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef EE_MACHINE_CODE_INFO_H
 #define EE_MACHINE_CODE_INFO_H
 
+#include "llvm/System/DataTypes.h"
+
 namespace llvm {
 
 class MachineCodeInfo {
index b7e267dd13337d3428edb4236942b1e1beea51bc..5dee199c7d1a823421fcdcede3e5da8f3a1d26b7 100644 (file)
@@ -16,6 +16,8 @@
 #ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H
 #define LLVM_CODEGEN_MACHINEMEMOPERAND_H
 
+#include "llvm/System/DataTypes.h"
+
 namespace llvm {
 
 class Value;
index 98ec396a26a0350da9e63d1c45b055c24fc964a8..02439e8e2388b4f77eb1504c0650d7d245b562f3 100644 (file)
 #ifndef LLVM_TRANSFORMS_RSPROFILING_H
 #define LLVM_TRANSFORMS_RSPROFILING_H
 
+#include "llvm/Pass.h"
+
 namespace llvm {
+  class Value;
+  
   //===--------------------------------------------------------------------===//
   /// RSProfilers - The basic Random Sampling Profiler Interface  Any profiler 
   /// that implements this interface can be transformed by the random sampling
index ff5bb7b8614d7f55234cc886d72ea9476481adfd..198fc827bb0b34ac079c44c3de897077af3139d6 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef LLVM_TRANSFORMS_UTILS_SSI_H
 #define LLVM_TRANSFORMS_UTILS_SSI_H
 
+#include "llvm/InstrTypes.h"
 #include "llvm/Pass.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallPtrSet.h"