forked from OSchip/llvm-project
Add a Create method that accepts 'kind' and 'pcadj' arguments.
llvm-svn: 140934
This commit is contained in:
parent
396c211ae1
commit
6722556380
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue