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 | 74eb9e7bfd838f2a9e0c84b94ee83d2ec2a855cd (patch) | |
tree | b3fdb0ed562453a2f2868421068c2d6c07d3b6ca /llvm/lib/Target | |
parent | 38484ceec99cf16d8644eb0649ea055e0e2db021 (diff) | |
download | bcm5719-llvm-74eb9e7bfd838f2a9e0c84b94ee83d2ec2a855cd.tar.gz bcm5719-llvm-74eb9e7bfd838f2a9e0c84b94ee83d2ec2a855cd.zip |
Move ~ARMConstantPoolValue() to the .cpp file to avoid needing to include <cstdlib> in the header.
llvm-svn: 78665
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantPoolValue.cpp | 5 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantPoolValue.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp index adf03e04b81..a598af4f228 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/llvm/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); diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.h b/llvm/lib/Target/ARM/ARMConstantPoolValue.h index 504a71e779e..bb5232a53bb 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.h +++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.h @@ -16,7 +16,6 @@ #include "llvm/CodeGen/MachineConstantPool.h" #include <iosfwd> -#include <stdlib.h> namespace llvm { @@ -55,7 +54,7 @@ public: ARMConstantPoolValue(GlobalValue *GV, ARMCP::ARMCPKind Kind, const char *Modifier); ARMConstantPoolValue(); - ~ARMConstantPoolValue() {free((void*)S);} + ~ARMConstantPoolValue(); GlobalValue *getGV() const { return GV; } |