Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Unified Diff: src/IceTargetLoweringX86Base.h

Issue 1669443002: Subzero. Uses fixups to calculate addend to relocations. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698