[llvm-commits] [llvm] r86186 - in /llvm/trunk/include/llvm: ADT/ImmutableMap.h ADT/ImmutableSet.h ADT/PriorityQueue.h ADT/Trie.h CodeGen/BinaryObject.h CodeGen/LinkAllAsmWriterComponents.h CodeGen/MachORelocation.h CodeGen/MachineCodeInfo.h CodeGen/MachineMemOperand.h Transforms/RSProfiling.h Transforms/Utils/SSI.h
Douglas Gregor
dgregor at apple.com
Thu Nov 5 15:01:30 PST 2009
Author: dgregor
Date: Thu Nov 5 17:01:30 2009
New Revision: 86186
URL: http://llvm.org/viewvc/llvm-project?rev=86186&view=rev
Log:
Make a few more LLVM headers parsable as standalone headers.
Fix some problems with the hidden copy constructors for
ImmutableMap/ImmutableSet found by Clang++.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
llvm/trunk/include/llvm/ADT/ImmutableSet.h
llvm/trunk/include/llvm/ADT/PriorityQueue.h
llvm/trunk/include/llvm/ADT/Trie.h
llvm/trunk/include/llvm/CodeGen/BinaryObject.h
llvm/trunk/include/llvm/CodeGen/LinkAllAsmWriterComponents.h
llvm/trunk/include/llvm/CodeGen/MachORelocation.h
llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h
llvm/trunk/include/llvm/CodeGen/MachineMemOperand.h
llvm/trunk/include/llvm/Transforms/RSProfiling.h
llvm/trunk/include/llvm/Transforms/Utils/SSI.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableMap.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableMap.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableMap.h Thu Nov 5 17:01:30 2009
@@ -102,8 +102,8 @@
}
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;
Modified: llvm/trunk/include/llvm/ADT/ImmutableSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableSet.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableSet.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableSet.h Thu Nov 5 17:01:30 2009
@@ -988,8 +988,8 @@
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;
Modified: llvm/trunk/include/llvm/ADT/PriorityQueue.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PriorityQueue.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/PriorityQueue.h (original)
+++ llvm/trunk/include/llvm/ADT/PriorityQueue.h Thu Nov 5 17:01:30 2009
@@ -14,6 +14,7 @@
#ifndef LLVM_ADT_PRIORITY_QUEUE_H
#define LLVM_ADT_PRIORITY_QUEUE_H
+#include <algorithm>
#include <queue>
namespace llvm {
Modified: llvm/trunk/include/llvm/ADT/Trie.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Trie.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Trie.h (original)
+++ llvm/trunk/include/llvm/ADT/Trie.h Thu Nov 5 17:01:30 2009
@@ -18,6 +18,7 @@
#include "llvm/ADT/GraphTraits.h"
#include "llvm/Support/DOTGraphTraits.h"
+#include <cassert>
#include <vector>
namespace llvm {
Modified: llvm/trunk/include/llvm/CodeGen/BinaryObject.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/BinaryObject.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/BinaryObject.h (original)
+++ llvm/trunk/include/llvm/CodeGen/BinaryObject.h Thu Nov 5 17:01:30 2009
@@ -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 {
Modified: llvm/trunk/include/llvm/CodeGen/LinkAllAsmWriterComponents.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LinkAllAsmWriterComponents.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LinkAllAsmWriterComponents.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LinkAllAsmWriterComponents.h Thu Nov 5 17:01:30 2009
@@ -16,6 +16,7 @@
#define LLVM_CODEGEN_LINKALLASMWRITERCOMPONENTS_H
#include "llvm/CodeGen/GCs.h"
+#include <cstdlib>
namespace {
struct ForceAsmWriterLinking {
Modified: llvm/trunk/include/llvm/CodeGen/MachORelocation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachORelocation.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachORelocation.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachORelocation.h Thu Nov 5 17:01:30 2009
@@ -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
Modified: llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineCodeInfo.h Thu Nov 5 17:01:30 2009
@@ -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 {
Modified: llvm/trunk/include/llvm/CodeGen/MachineMemOperand.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineMemOperand.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineMemOperand.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineMemOperand.h Thu Nov 5 17:01:30 2009
@@ -16,6 +16,8 @@
#ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H
#define LLVM_CODEGEN_MACHINEMEMOPERAND_H
+#include "llvm/System/DataTypes.h"
+
namespace llvm {
class Value;
Modified: llvm/trunk/include/llvm/Transforms/RSProfiling.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/RSProfiling.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/RSProfiling.h (original)
+++ llvm/trunk/include/llvm/Transforms/RSProfiling.h Thu Nov 5 17:01:30 2009
@@ -15,7 +15,11 @@
#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
Modified: llvm/trunk/include/llvm/Transforms/Utils/SSI.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/SSI.h?rev=86186&r1=86185&r2=86186&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/SSI.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/SSI.h Thu Nov 5 17:01:30 2009
@@ -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"
More information about the llvm-commits
mailing list