Add a Create method that accepts 'kind' and 'pcadj' arguments.

llvm-svn: 140934
This commit is contained in:
Bill Wendling 2011-10-01 06:44:24 +00:00
parent 396c211ae1
commit 6722556380
2 changed files with 10 additions and 0 deletions

View File

@ -192,6 +192,13 @@ ARMConstantPoolConstant::Create(const Constant *C, unsigned ID) {
ARMCP::no_modifier, false);
}
ARMConstantPoolConstant *
ARMConstantPoolConstant::Create(const Constant *C, unsigned ID,
ARMCP::ARMCPKind Kind, unsigned char PCAdj) {
return new ARMConstantPoolConstant(C, ID, Kind, PCAdj,
ARMCP::no_modifier, false);
}
const GlobalValue *ARMConstantPoolConstant::getGV() const {
return dyn_cast<GlobalValue>(CVal);
}

View File

@ -139,6 +139,9 @@ class ARMConstantPoolConstant : public ARMConstantPoolValue {
bool AddCurrentAddress);
public:
static ARMConstantPoolConstant *Create(const Constant *C, unsigned ID);
static ARMConstantPoolConstant *Create(const Constant *C, unsigned ID,
ARMCP::ARMCPKind Kind,
unsigned char PCAdj);
const GlobalValue *getGV() const;