From 029e93888d2ce07f4a81d2a927fd2e3cfe673afd Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sat, 1 Oct 2011 06:44:24 +0000 Subject: [PATCH] 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 --- lib/Target/ARM/ARMConstantPoolValue.cpp | 7 +++++++ lib/Target/ARM/ARMConstantPoolValue.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/lib/Target/ARM/ARMConstantPoolValue.cpp b/lib/Target/ARM/ARMConstantPoolValue.cpp index f65dc7c8aca..bca165b36eb 100644 --- a/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/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(CVal); } diff --git a/lib/Target/ARM/ARMConstantPoolValue.h b/lib/Target/ARM/ARMConstantPoolValue.h index 5a6180830bc..8c74d25ffc9 100644 --- a/lib/Target/ARM/ARMConstantPoolValue.h +++ b/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; -- 2.34.1