-//===- ARMConstantPoolValue.cpp - ARM constantpool value --------*- C++ -*-===//
+//===-- ARMConstantPoolValue.cpp - ARM constantpool value -----------------===//
//
// The LLVM Compiler Infrastructure
//
#include "ARMConstantPoolValue.h"
#include "llvm/ADT/FoldingSet.h"
+#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Constant.h"
#include "llvm/Constants.h"
#include "llvm/GlobalValue.h"
-#include "llvm/Type.h"
-#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/Type.h"
#include <cstdlib>
using namespace llvm;
S(strdup(s)) {}
ARMConstantPoolSymbol::~ARMConstantPoolSymbol() {
- free((void*)S);
+ free(const_cast<void*>(reinterpret_cast<const void *>(S)));
}
ARMConstantPoolSymbol *