MachineConstantPoolValues are not uniqued, so they need to be freed if they
authorCameron Zwarich <zwarich@apple.com>
Tue, 22 Feb 2011 08:54:30 +0000 (08:54 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 22 Feb 2011 08:54:30 +0000 (08:54 +0000)
commit5567869637383969dced0b84dbd19da12682df6b
tree2d1e9c10d092bd8d5a942e2d010154a7ab019eee
parent6023efb45d9f21d0fd453334dc958b125cdbd8f8
MachineConstantPoolValues are not uniqued, so they need to be freed if they
share entries. Add a DenseSet to MachineConstantPool for the MachineCPVs that
it owns.

This will hopefully fix the MC/ARM/elf-reloc-01.ll failure on the leaks bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126218 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineConstantPool.h
lib/CodeGen/MachineFunction.cpp