projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Const-correct and prevent a copy of a SmallPtrSet.
[oota-llvm.git]
/
lib
/
IR
/
LLVMContextImpl.h
diff --git
a/lib/IR/LLVMContextImpl.h
b/lib/IR/LLVMContextImpl.h
index 808c239bff5e9d53e671f91eace554eddaa6c25c..412f36db06ef87c571d18d7acafafedc76399d40 100644
(file)
--- a/
lib/IR/LLVMContextImpl.h
+++ b/
lib/IR/LLVMContextImpl.h
@@
-12,8
+12,8
@@
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_L
LVMCONTEXT_
IMPL_H
-#define LLVM_L
LVMCONTEXT_
IMPL_H
+#ifndef LLVM_L
IB_IR_LLVMCONTEXT
IMPL_H
+#define LLVM_L
IB_IR_LLVMCONTEXT
IMPL_H
#include "AttributeImpl.h"
#include "ConstantsContext.h"
#include "AttributeImpl.h"
#include "ConstantsContext.h"
@@
-272,13
+272,13
@@
public:
DenseMap<Type*, ConstantAggregateZero*> CAZConstants;
DenseMap<Type*, ConstantAggregateZero*> CAZConstants;
- typedef Constant
AggrUniqueMap<ArrayType,
ConstantArray> ArrayConstantsTy;
+ typedef Constant
UniqueMap<
ConstantArray> ArrayConstantsTy;
ArrayConstantsTy ArrayConstants;
ArrayConstantsTy ArrayConstants;
- typedef Constant
AggrUniqueMap<StructType,
ConstantStruct> StructConstantsTy;
+ typedef Constant
UniqueMap<
ConstantStruct> StructConstantsTy;
StructConstantsTy StructConstants;
StructConstantsTy StructConstants;
- typedef Constant
AggrUniqueMap<VectorType,
ConstantVector> VectorConstantsTy;
+ typedef Constant
UniqueMap<
ConstantVector> VectorConstantsTy;
VectorConstantsTy VectorConstants;
DenseMap<PointerType*, ConstantPointerNull*> CPNConstants;
VectorConstantsTy VectorConstants;
DenseMap<PointerType*, ConstantPointerNull*> CPNConstants;
@@
-289,12
+289,10
@@
public:
DenseMap<std::pair<const Function *, const BasicBlock *>, BlockAddress *>
BlockAddresses;
DenseMap<std::pair<const Function *, const BasicBlock *>, BlockAddress *>
BlockAddresses;
- ConstantUniqueMap<ExprMapKeyType, const ExprMapKeyType&, Type, ConstantExpr>
- ExprConstants;
+ ConstantUniqueMap<ConstantExpr> ExprConstants;
+
+ ConstantUniqueMap<InlineAsm> InlineAsms;
- ConstantUniqueMap<InlineAsmKeyType, const InlineAsmKeyType&, PointerType,
- InlineAsm> InlineAsms;
-
ConstantInt *TheTrueVal;
ConstantInt *TheFalseVal;
ConstantInt *TheTrueVal;
ConstantInt *TheFalseVal;