Преглед изворни кода

* import llvminfo when building an llvm-targeting compiler to override the
default -O1/2/3 optimization levels and supported optimization switches
(e.g. -Ooregvar is not supported for the llvm target, nor needed)

git-svn-id: branches/hlcgllvm@26055 -

Jonas Maebe пре 11 година
родитељ
комит
ad84210a9a
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      compiler/options.pas

+ 5 - 1
compiler/options.pas

@@ -27,7 +27,7 @@ interface
 
 uses
   cfileutl,
-  globtype,globals,verbose,systems,cpuinfo, comprsrc;
+  globtype,globals,verbose,systems,cpuinfo,comprsrc;
 
 Type
   TOption=class
@@ -91,6 +91,10 @@ uses
   comphook,
   symtable,scanner,rabase,
   symconst,
+{$ifdef llvm}
+  { override supported optimizer transformations at the compiler level }
+  llvminfo,
+{$endif llvm}
   dirparse,
   i_bsd;