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

Unified Diff: crosstest/test_calling_conv_main.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 | « no previous file | crosstest/test_global.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_calling_conv_main.cpp
diff --git a/crosstest/test_calling_conv_main.cpp b/crosstest/test_calling_conv_main.cpp
index b5f2135b9c4c58b5ff9cc1413f3ed50d0e543a1e..9a6c2f6f0bca71a3bd07252f4480938c7f3d4130 100644
--- a/crosstest/test_calling_conv_main.cpp
+++ b/crosstest/test_calling_conv_main.cpp
@@ -45,9 +45,9 @@ namespace Subzero_ {
// functions receive arguments from the caller in the same way. The
// caller is compiled by llc.
-size_t ArgNum, Subzero_ArgNum;
-CalleePtrTy Callee, Subzero_Callee;
-char *Buf, *Subzero_Buf;
+size_t ArgNum;
+CalleePtrTy Callee;
+char *Buf;
const static size_t BUF_SIZE = 16;
@@ -83,13 +83,13 @@ void testCaller(size_t &TotalTests, size_t &Passes, size_t &Failures) {
for (size_t f = 0; f < NumFuncs; ++f) {
char BufLlc[BUF_SIZE], BufSz[BUF_SIZE];
- Callee = Subzero_Callee = Funcs[f].Callee;
+ Callee = Funcs[f].Callee;
for (size_t i = 0; i < Funcs[f].Args; ++i) {
memset(BufLlc, 0xff, sizeof(BufLlc));
memset(BufSz, 0xff, sizeof(BufSz));
- ArgNum = Subzero_ArgNum = i;
+ ArgNum = i;
Buf = BufLlc;
Funcs[f].Caller();
@@ -133,18 +133,18 @@ void testCallee(size_t &TotalTests, size_t &Passes, size_t &Failures) {
for (size_t f = 0; f < NumFuncs; ++f) {
char BufLlc[BUF_SIZE], BufSz[BUF_SIZE];
- Buf = BufLlc;
- Subzero_Buf = BufSz;
for (size_t i = 0; i < Funcs[f].Args; ++i) {
memset(BufLlc, 0xff, sizeof(BufLlc));
memset(BufSz, 0xff, sizeof(BufSz));
- ArgNum = Subzero_ArgNum = i;
+ ArgNum = i;
+ Buf = BufLlc;
Callee = Funcs[f].Callee;
Funcs[f].Caller();
+ Buf = BufSz;
Callee = Funcs[f].Subzero_Callee;
Funcs[f].Caller();
« no previous file with comments | « no previous file | crosstest/test_global.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698