2
0
Эх сурвалжийг харах

removed duplicate fingerprint warning because symbols are resolved by name now

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6348 8c9fc860-2736-0410-a75d-ab315db34111
felixf 10 жил өмнө
parent
commit
769d6ccbe1

+ 2 - 1
source/FoxGenericObjectFile.Mod

@@ -9,6 +9,7 @@ CONST
 	Version = 3;
 	Trace = FALSE;
 	TraceAliases = FALSE;
+	WarnDuplicateFingerprints = FALSE;
 
 	(* optimizations *)
 	PatchFixups = TRUE; (* patch all fixups that can be processed during object file generation *)
@@ -205,7 +206,7 @@ TYPE ObjectFileFormat* = OBJECT (Formats.ObjectFileFormat)
 					section := sections.GetSection(i);
 					IF (section(IntermediateCode.Section).resolved # NIL) & (section(IntermediateCode.Section).alias = NIL)  THEN
 						IF ~ExportSection(section(IntermediateCode.Section)) THEN RETURN FALSE END;
-						IF  (section(IntermediateCode.Section).resolved.os.identifier.fingerprint # 0) THEN
+						IF  WarnDuplicateFingerprints &  (section(IntermediateCode.Section).resolved.os.identifier.fingerprint # 0) THEN
 							FOR j := 0 TO i - 1 DO
 								test := sections.GetSection(j);
 								IF (test(IntermediateCode.Section).resolved # NIL)