mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 13:21:30 +00:00
Add a Create method that accepts 'kind' and 'pcadj' arguments.
llvm-svn: 140934
This commit is contained in:
parent
33b0c55f4d
commit
9ad0742c3f
@ -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
Block a user