OSDN Git Service

Add a Create method that accepts 'kind' and 'pcadj' arguments.
authorBill Wendling <isanbard@gmail.com>
Sat, 1 Oct 2011 06:44:24 +0000 (06:44 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 1 Oct 2011 06:44:24 +0000 (06:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140934 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMConstantPoolValue.cpp
lib/Target/ARM/ARMConstantPoolValue.h

index f65dc7c..bca165b 100644 (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);
 }
index 5a61808..8c74d25 100644 (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;