[llvm-commits] [llvm] r78665 - in /llvm/trunk/lib/Target/ARM: ARMConstantPoolValue.cpp ARMConstantPoolValue.h
Jim Grosbach
grosbach at apple.com
Tue Aug 11 08:26:27 PDT 2009
Author: grosbach
Date: Tue Aug 11 10:26:27 2009
New Revision: 78665
URL: http://llvm.org/viewvc/llvm-project?rev=78665&view=rev
Log:
Move ~ARMConstantPoolValue() to the .cpp file to avoid needing to include <cstdlib> in the header.
Modified:
llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp
llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.h
Modified: llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp?rev=78665&r1=78664&r2=78665&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp Tue Aug 11 10:26:27 2009
@@ -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 @@
return -1;
}
+ARMConstantPoolValue::~ARMConstantPoolValue(void) {
+ free((void*)S);
+}
+
void
ARMConstantPoolValue::AddSelectionDAGCSEId(FoldingSetNodeID &ID) {
ID.AddPointer(GV);
Modified: llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.h?rev=78665&r1=78664&r2=78665&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.h Tue Aug 11 10:26:27 2009
@@ -16,7 +16,6 @@
#include "llvm/CodeGen/MachineConstantPool.h"
#include <iosfwd>
-#include <stdlib.h>
namespace llvm {
@@ -55,7 +54,7 @@
ARMConstantPoolValue(GlobalValue *GV, ARMCP::ARMCPKind Kind,
const char *Modifier);
ARMConstantPoolValue();
- ~ARMConstantPoolValue() {free((void*)S);}
+ ~ARMConstantPoolValue();
GlobalValue *getGV() const { return GV; }
More information about the llvm-commits
mailing list