mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 01:26:41 +00:00
Add a Create method that accepts 'kind' and 'pcadj' arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f2b76aae2b
commit
029e93888d
@ -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…
x
Reference in New Issue
Block a user