diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-23 08:52:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-23 08:52:32 +0000 |
commit | 4494e1ae259b3986689303745e7f7f5117e668c0 (patch) | |
tree | 52da4a65d44ed19e1caf60f1f50af9edd43f9137 /llvm/lib/VMCore/ConstantsContext.h | |
parent | 75499f5d0444e7d123cfd10823f4dd44e40f30bf (diff) | |
download | bcm5719-llvm-4494e1ae259b3986689303745e7f7f5117e668c0.tar.gz bcm5719-llvm-4494e1ae259b3986689303745e7f7f5117e668c0.zip |
switch UndefValue and ConstantPointerNull over to DenseMap's for uniquing.
llvm-svn: 148693
Diffstat (limited to 'llvm/lib/VMCore/ConstantsContext.h')
-rw-r--r-- | llvm/lib/VMCore/ConstantsContext.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/llvm/lib/VMCore/ConstantsContext.h b/llvm/lib/VMCore/ConstantsContext.h index fec2be58cfc..4bdeaa78302 100644 --- a/llvm/lib/VMCore/ConstantsContext.h +++ b/llvm/lib/VMCore/ConstantsContext.h @@ -514,37 +514,6 @@ struct ConstantKeyData<ConstantStruct> { } }; -// ConstantPointerNull does not take extra "value" argument... -template<class ValType> -struct ConstantCreator<ConstantPointerNull, PointerType, ValType> { - static ConstantPointerNull *create(PointerType *Ty, const ValType &V){ - return new ConstantPointerNull(Ty); - } -}; - -template<> -struct ConstantKeyData<ConstantPointerNull> { - typedef char ValType; - static ValType getValType(ConstantPointerNull *C) { - return 0; - } -}; - -// UndefValue does not take extra "value" argument... -template<class ValType> -struct ConstantCreator<UndefValue, Type, ValType> { - static UndefValue *create(Type *Ty, const ValType &V) { - return new UndefValue(Ty); - } -}; - -template<> -struct ConstantKeyData<UndefValue> { - typedef char ValType; - static ValType getValType(UndefValue *C) { - return 0; - } -}; template<> struct ConstantCreator<InlineAsm, PointerType, InlineAsmKeyType> { |