[llvm-commits] CVS: llvm/test/Programs/GenerateReport.pl
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 17 23:09:02 PDT 2003
Changes in directory llvm/test/Programs:
GenerateReport.pl updated: 1.11 -> 1.12
---
Log message:
Allow reports to specify a formatting function if they desire
---
Diffs of the changes:
Index: llvm/test/Programs/GenerateReport.pl
diff -u llvm/test/Programs/GenerateReport.pl:1.11 llvm/test/Programs/GenerateReport.pl:1.12
--- llvm/test/Programs/GenerateReport.pl:1.11 Fri Aug 15 14:11:02 2003
+++ llvm/test/Programs/GenerateReport.pl Sun Aug 17 23:07:50 2003
@@ -94,7 +94,13 @@
if (!defined($1)) {
push @RowValues, "*";
} else {
- push @RowValues, $1;
+ # If there is a formatting function, run it now...
+ my $Val = $1;
+ if (scalar(@$Row) > 2) {
+ $Val = &{$Row->[2]}($Val);
+ }
+
+ push @RowValues, $Val;
}
}
} else { # Just add a seperator...
More information about the llvm-commits
mailing list