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

Unified Diff: src/IceFixups.cpp

Issue 1616103002: Subzero. X8664. Enables RIP-based addressing mode. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: make presubmit happy. 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/IceFixups.cpp
diff --git a/src/IceFixups.cpp b/src/IceFixups.cpp
index ef594acb8ed87837cb39aebde1b630507eed4d47..b323bc611561a9d61e66286fb2e7636ea88c5aaf 100644
--- a/src/IceFixups.cpp
+++ b/src/IceFixups.cpp
@@ -23,10 +23,10 @@ const Constant *AssemblerFixup::NullSymbol = nullptr;
RelocOffsetT AssemblerFixup::offset() const {
if (isNullSymbol())
- return 0;
+ return addend_;
if (const auto *CR = llvm::dyn_cast<ConstantRelocatable>(value_))
- return CR->getOffset();
- return 0;
+ return CR->getOffset() + addend_;
+ return addend_;
}
IceString AssemblerFixup::symbol(const GlobalContext *Ctx,

Powered by Google App Engine
This is Rietveld 408576698