[cfe-commits] r92929 - /cfe/trunk/utils/VtableTest/gen.cc
Mike Stump
mrs at apple.com
Thu Jan 7 11:24:27 PST 2010
Author: mrs
Date: Thu Jan 7 13:24:27 2010
New Revision: 92929
URL: http://llvm.org/viewvc/llvm-project?rev=92929&view=rev
Log:
Don't use two argument mixing function.
Modified:
cfe/trunk/utils/VtableTest/gen.cc
Modified: cfe/trunk/utils/VtableTest/gen.cc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/VtableTest/gen.cc?rev=92929&r1=92928&r2=92929&view=diff
==============================================================================
--- cfe/trunk/utils/VtableTest/gen.cc (original)
+++ cfe/trunk/utils/VtableTest/gen.cc Thu Jan 7 13:24:27 2010
@@ -124,7 +124,7 @@
for (int i = 0; i < n_funcs; ++i) {
int fn = old_func + random() % FUNCSPACING + 1;
funcs[i] = fn;
- g(" virtual void fun"); g(fn); g("(char *t) { mix((char *)this - t, "); g(++vfn); gl("); }");
+ g(" virtual void fun"); g(fn); g("(char *t) { mix((char *)this - t); mix("); g(++vfn); gl("); }");
old_func = fn;
}
@@ -210,7 +210,6 @@
gl(" printf(\"%llx\\n\", i);");
gl(" sum += ((sum ^ i) << 3) + (sum<<1) - i;");
gl("}");
- gl("void mix(long long i1, long long i2) { mix(i1); mix(i2); }");
gl("");
// PARAM: Randomly size testcases or large testcases?
int n_structs = /* random() % */ N_STRUCTS;
More information about the cfe-commits
mailing list