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

Unified Diff: src/IceTargetLowering.cpp

Issue 1651163002: Subzero. Enables moar complex relocation offsets. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: make format 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
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLowering.cpp
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
index 8dd918e2c128828f38afd986ed80fbaa4c54d81d..b41bc696bc9edac2fd9fa4d8666a3afabb1580e9 100644
--- a/src/IceTargetLowering.cpp
+++ b/src/IceTargetLowering.cpp
@@ -704,6 +704,13 @@ void TargetLowering::emitWithoutPrefix(const ConstantRelocatable *C,
if (!BuildDefs::dump())
return;
Ostream &Str = Ctx->getStrEmit();
+ const IceString &EmitStr = C->getEmitString();
+ if (!EmitStr.empty()) {
+ // C has a custom emit string, so we use it instead of the canonical
+ // Name + Offset form.
+ Str << EmitStr;
+ return;
+ }
if (C->getSuppressMangling())
Str << C->getName();
else
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698