From: Jürg Billeter Date: Fri, 10 Sep 2010 15:34:43 +0000 (+0200) Subject: CodeWriter: Do not do any sorting in FAST mode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=683fdf86039ade0da7be35c711000c0af2e53823;p=thirdparty%2Fvala.git CodeWriter: Do not do any sorting in FAST mode Order of virtual methods matters for fast-vapis --- diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index 3b2a12361..9a07c83a4 100644 --- a/vala/valacodewriter.vala +++ b/vala/valacodewriter.vala @@ -357,6 +357,14 @@ public class Vala.CodeWriter : CodeVisitor { } void visit_sorted (List symbols) { + if (type != CodeWriterType.EXTERNAL) { + // order of virtual methods matters for fast vapis + foreach (Symbol sym in symbols) { + sym.accept (this); + } + return; + } + var sorted_symbols = new ArrayList (); foreach (Symbol sym in symbols) { int left = 0;