mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
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
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
#include "llvm/Type.h"
|
#include "llvm/Type.h"
|
||||||
#include "llvm/Support/Streams.h"
|
#include "llvm/Support/Streams.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
|
#include <cstdlib>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
ARMConstantPoolValue::ARMConstantPoolValue(GlobalValue *gv, unsigned id,
|
ARMConstantPoolValue::ARMConstantPoolValue(GlobalValue *gv, unsigned id,
|
||||||
@@ -65,6 +66,10 @@ int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ARMConstantPoolValue::~ARMConstantPoolValue(void) {
|
||||||
|
free((void*)S);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ARMConstantPoolValue::AddSelectionDAGCSEId(FoldingSetNodeID &ID) {
|
ARMConstantPoolValue::AddSelectionDAGCSEId(FoldingSetNodeID &ID) {
|
||||||
ID.AddPointer(GV);
|
ID.AddPointer(GV);
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||||
#include <iosfwd>
|
#include <iosfwd>
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
@@ -55,7 +54,7 @@ public:
|
|||||||
ARMConstantPoolValue(GlobalValue *GV, ARMCP::ARMCPKind Kind,
|
ARMConstantPoolValue(GlobalValue *GV, ARMCP::ARMCPKind Kind,
|
||||||
const char *Modifier);
|
const char *Modifier);
|
||||||
ARMConstantPoolValue();
|
ARMConstantPoolValue();
|
||||||
~ARMConstantPoolValue() {free((void*)S);}
|
~ARMConstantPoolValue();
|
||||||
|
|
||||||
|
|
||||||
GlobalValue *getGV() const { return GV; }
|
GlobalValue *getGV() const { return GV; }
|
||||||
|
Reference in New Issue
Block a user