Index: src/IceTargetLoweringX86Base.h |
diff --git a/src/IceTargetLoweringX86Base.h b/src/IceTargetLoweringX86Base.h |
index f4119f006c4ec5da15168726fa863a8ee9fa81f2..18ba6dcc29a5e12947cba251f6bc15a663e762ab 100644 |
--- a/src/IceTargetLoweringX86Base.h |
+++ b/src/IceTargetLoweringX86Base.h |
@@ -172,6 +172,13 @@ public: |
return Traits::Is64Bit ? false : Ty == IceType_i64; |
} |
+ ConstantRelocatable *createGetIPForRegister(const Variable *Dest) { |
+ assert(Dest->hasReg()); |
+ const IceString RegName = Traits::getRegName(Dest->getRegNum()); |
+ return llvm::cast<ConstantRelocatable>( |
+ Ctx->getConstantExternSym(H_getIP_prefix + RegName)); |
+ } |
+ |
SizeT getMinJumpTableSize() const override { return 4; } |
void emitVariable(const Variable *Var) const override; |