Skip to content

Commit a369a69

Browse files
author
Andrew Lenharth
committed
numberic sort should not generate errors in perl, and remove dsa tests
llvm-svn: 36478
1 parent 3c49a83 commit a369a69

6 files changed

+4
-546
lines changed

GenerateReport.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ sub AddColumns {
185185
# Sort table now...
186186
#
187187
if ($SortNumeric) {
188-
@Values = sort { $a->[$SortCol] <=> $b->[$SortCol] } @Values;
188+
@Values = sort { $lhs = $a->[$SortCol]; $rhs = $b->[$SortCol];
189+
$lhs = 0 if ($lhs eq "*");
190+
$rhs = 0 if ($rhs eq "*");
191+
$lhs <=> $rhs } @Values;
189192
} else {
190193
@Values = sort { $a->[$SortCol] cmp $b->[$SortCol] } @Values;
191194
}

TEST.dsgraph.Makefile

Lines changed: 0 additions & 78 deletions
This file was deleted.

TEST.dsgraph.gnuplot

Lines changed: 0 additions & 70 deletions
This file was deleted.

TEST.dsgraph.report

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)