aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-08-11 15:26:27 +0000
committerJim Grosbach <grosbach@apple.com>2009-08-11 15:26:27 +0000
commit3fe420be2d2032ac5dbeae61c170b64d9acd4e1f (patch)
treeeb15f55dccebbfb190132abdcbaf52f23a6fb9af
parent46a803a67e7b3157f11173e696a8e724c6af190e (diff)
downloadexternal_llvm-3fe420be2d2032ac5dbeae61c170b64d9acd4e1f.zip
external_llvm-3fe420be2d2032ac5dbeae61c170b64d9acd4e1f.tar.gz
external_llvm-3fe420be2d2032ac5dbeae61c170b64d9acd4e1f.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
-rw-r--r--lib/Target/ARM/ARMConstantPoolValue.cpp5
-rw-r--r--lib/Target/ARM/ARMConstantPoolValue.h3
2 files changed, 6 insertions, 2 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);
diff --git a/lib/Target/ARM/ARMConstantPoolValue.h b/lib/Target/ARM/ARMConstantPoolValue.h
index 504a71e..bb5232a 100644
--- a/lib/Target/ARM/ARMConstantPoolValue.h
+++ b/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; }