diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-01 06:44:24 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-01 06:44:24 +0000 |
commit | 6722556380652fd17f9b519510c20e9e3c4ad14e (patch) | |
tree | 95b89c200b6b9afe2103df05a8d28c3faf97d496 /llvm/lib/Target/ARM | |
parent | 396c211ae18ad9e0d99cf53cebe4ceec3549a6f2 (diff) | |
download | bcm5719-llvm-6722556380652fd17f9b519510c20e9e3c4ad14e.tar.gz bcm5719-llvm-6722556380652fd17f9b519510c20e9e3c4ad14e.zip |
Add a Create method that accepts 'kind' and 'pcadj' arguments.
llvm-svn: 140934
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantPoolValue.cpp | 7 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantPoolValue.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp index f65dc7c8aca..bca165b36eb 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp @@ -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); } diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.h b/llvm/lib/Target/ARM/ARMConstantPoolValue.h index 5a6180830bc..8c74d25ffc9 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.h +++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.h @@ -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; |