made compiler more robust for idetools support

This commit is contained in:
Araq 2012-07-30 17:43:22 +02:00
commit b0c11d3efb
11 changed files with 94 additions and 53 deletions

View file

@ -78,7 +78,8 @@ proc CompileModule(filename: string, flags: TSymFlags): PSym =
rd = handleSymbolFile(result, f)
if result.id < 0:
InternalError("handleSymbolFile should have set the module\'s ID")
else:
return
else:
result.id = getID()
processModule(result, f, nil, rd)