diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-08-11 15:26:27 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-08-11 15:26:27 +0000 |
commit | f128787f941bb372e80d69b786ed144d8606a292 (patch) | |
tree | eb15f55dccebbfb190132abdcbaf52f23a6fb9af /lib/Target/ARM/ARMConstantPoolValue.cpp | |
parent | 1b2d0b83977a37cb22391dc5a7bf09de76caf0b2 (diff) | |
download | external_llvm-f128787f941bb372e80d69b786ed144d8606a292.zip external_llvm-f128787f941bb372e80d69b786ed144d8606a292.tar.gz external_llvm-f128787f941bb372e80d69b786ed144d8606a292.tar.bz2 |
Move ~ARMConstantPoolValue() to the .cpp file to avoid needing to include <cstdlib> in the header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantPoolValue.cpp')
-rw-r--r-- | lib/Target/ARM/ARMConstantPoolValue.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMConstantPoolValue.cpp b/lib/Target/ARM/ARMConstantPoolValue.cpp index adf03e0..a598af4 100644 --- a/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/lib/Target/ARM/ARMConstantPoolValue.cpp @@ -17,6 +17,7 @@ #include "llvm/Type.h" #include "llvm/Support/Streams.h" #include "llvm/Support/raw_ostream.h" +#include <cstdlib> using namespace llvm; ARMConstantPoolValue::ARMConstantPoolValue(GlobalValue *gv, unsigned id, @@ -65,6 +66,10 @@ int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP, return -1; } +ARMConstantPoolValue::~ARMConstantPoolValue(void) { + free((void*)S); +} + void ARMConstantPoolValue::AddSelectionDAGCSEId(FoldingSetNodeID &ID) { ID.AddPointer(GV); |