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

Unified Diff: src/IceOperand.cpp

Issue 667763002: Fix handling of relocation names, so that prefix mangling works. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 2 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/IceGlobalInits.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceOperand.cpp
diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp
index 3285e6d78a06b97614d71769ce5d3fdd21c992ec..98e8f6f1f9e5978bd9435663f14b463ca36d930e 100644
--- a/src/IceOperand.cpp
+++ b/src/IceOperand.cpp
@@ -460,8 +460,13 @@ void ConstantRelocatable::emit(GlobalContext *Ctx) const {
}
}
-void ConstantRelocatable::dump(const Cfg *, Ostream &Str) const {
- Str << "@" << Name;
+void ConstantRelocatable::dump(const Cfg *Func, Ostream &Str) const {
+ Str << "@";
+ if (Func && !SuppressMangling) {
+ Str << Func->getContext()->mangleName(Name);
+ } else {
+ Str << Name;
+ }
if (Offset)
Str << "+" << Offset;
}
« no previous file with comments | « src/IceGlobalInits.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698