# # # The Nim Compiler # (c) Copyright 2017 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. # ## The compiler can generate debuginfo to help debuggers in translating back ## from C/C++/JS code to Nim. The data structure has been designed to produce ## something useful with Nim's marshal module. import sighashes type FilenameMapping* = object package*, file*: string mangled*: SigHash EnumDesc* = object size*: int owner*: SigHash id*: int name*: string values*: seq[(string, int)] DebugInfo* = object version*: int files*: seq[FilenameMapping] enums*: seq[EnumDesc] conflicts*: bool proc sdbmHash(package, file: string): SigHash = result = 0 for i in 0..