Make a few more LLVM headers parsable as standalone headers.

Fix some problems with the hidden copy constructors for
ImmutableMap/ImmutableSet found by Clang++.

llvm-svn: 86186
This commit is contained in:
Douglas Gregor 2009-11-05 23:01:30 +00:00
parent 86a947dde9
commit 5632657208
11 changed files with 19 additions and 5 deletions

View File

@ -102,8 +102,8 @@ public:
} }
private: private:
Factory(const Factory& RHS) {}; Factory(const Factory& RHS); // DO NOT IMPLEMENT
void operator=(const Factory& RHS) {}; void operator=(const Factory& RHS); // DO NOT IMPLEMENT
}; };
friend class Factory; friend class Factory;

View File

@ -988,8 +988,8 @@ public:
BumpPtrAllocator& getAllocator() { return F.getAllocator(); } BumpPtrAllocator& getAllocator() { return F.getAllocator(); }
private: private:
Factory(const Factory& RHS) {} Factory(const Factory& RHS); // DO NOT IMPLEMENT
void operator=(const Factory& RHS) {} void operator=(const Factory& RHS); // DO NOT IMPLEMENT
}; };
friend class Factory; friend class Factory;

View File

@ -14,6 +14,7 @@
#ifndef LLVM_ADT_PRIORITY_QUEUE_H #ifndef LLVM_ADT_PRIORITY_QUEUE_H
#define LLVM_ADT_PRIORITY_QUEUE_H #define LLVM_ADT_PRIORITY_QUEUE_H
#include <algorithm>
#include <queue> #include <queue>
namespace llvm { namespace llvm {

View File

@ -18,6 +18,7 @@
#include "llvm/ADT/GraphTraits.h" #include "llvm/ADT/GraphTraits.h"
#include "llvm/Support/DOTGraphTraits.h" #include "llvm/Support/DOTGraphTraits.h"
#include <cassert>
#include <vector> #include <vector>
namespace llvm { namespace llvm {

View File

@ -15,6 +15,7 @@
#ifndef LLVM_CODEGEN_BINARYOBJECT_H #ifndef LLVM_CODEGEN_BINARYOBJECT_H
#define LLVM_CODEGEN_BINARYOBJECT_H #define LLVM_CODEGEN_BINARYOBJECT_H
#include "llvm/CodeGen/MachineRelocation.h"
#include "llvm/System/DataTypes.h" #include "llvm/System/DataTypes.h"
#include <string> #include <string>
@ -22,7 +23,6 @@
namespace llvm { namespace llvm {
class MachineRelocation;
typedef std::vector<uint8_t> BinaryData; typedef std::vector<uint8_t> BinaryData;
class BinaryObject { class BinaryObject {

View File

@ -16,6 +16,7 @@
#define LLVM_CODEGEN_LINKALLASMWRITERCOMPONENTS_H #define LLVM_CODEGEN_LINKALLASMWRITERCOMPONENTS_H
#include "llvm/CodeGen/GCs.h" #include "llvm/CodeGen/GCs.h"
#include <cstdlib>
namespace { namespace {
struct ForceAsmWriterLinking { struct ForceAsmWriterLinking {

View File

@ -15,6 +15,8 @@
#ifndef LLVM_CODEGEN_MACHO_RELOCATION_H #ifndef LLVM_CODEGEN_MACHO_RELOCATION_H
#define LLVM_CODEGEN_MACHO_RELOCATION_H #define LLVM_CODEGEN_MACHO_RELOCATION_H
#include "llvm/System/DataTypes.h"
namespace llvm { namespace llvm {
/// MachORelocation - This struct contains information about each relocation /// MachORelocation - This struct contains information about each relocation

View File

@ -17,6 +17,8 @@
#ifndef EE_MACHINE_CODE_INFO_H #ifndef EE_MACHINE_CODE_INFO_H
#define EE_MACHINE_CODE_INFO_H #define EE_MACHINE_CODE_INFO_H
#include "llvm/System/DataTypes.h"
namespace llvm { namespace llvm {
class MachineCodeInfo { class MachineCodeInfo {

View File

@ -16,6 +16,8 @@
#ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H #ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H
#define LLVM_CODEGEN_MACHINEMEMOPERAND_H #define LLVM_CODEGEN_MACHINEMEMOPERAND_H
#include "llvm/System/DataTypes.h"
namespace llvm { namespace llvm {
class Value; class Value;

View File

@ -15,7 +15,11 @@
#ifndef LLVM_TRANSFORMS_RSPROFILING_H #ifndef LLVM_TRANSFORMS_RSPROFILING_H
#define LLVM_TRANSFORMS_RSPROFILING_H #define LLVM_TRANSFORMS_RSPROFILING_H
#include "llvm/Pass.h"
namespace llvm { namespace llvm {
class Value;
//===--------------------------------------------------------------------===// //===--------------------------------------------------------------------===//
/// RSProfilers - The basic Random Sampling Profiler Interface Any profiler /// RSProfilers - The basic Random Sampling Profiler Interface Any profiler
/// that implements this interface can be transformed by the random sampling /// that implements this interface can be transformed by the random sampling

View File

@ -22,6 +22,7 @@
#ifndef LLVM_TRANSFORMS_UTILS_SSI_H #ifndef LLVM_TRANSFORMS_UTILS_SSI_H
#define LLVM_TRANSFORMS_UTILS_SSI_H #define LLVM_TRANSFORMS_UTILS_SSI_H
#include "llvm/InstrTypes.h"
#include "llvm/Pass.h" #include "llvm/Pass.h"
#include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallPtrSet.h"