Write imports out to the debug info file. Add the id of the corresponding
export. git-svn-id: svn://svn.cc65.org/cc65/trunk@5186 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -211,6 +211,30 @@ struct Section* GetObjSection (ObjData* O, unsigned Id)
|
||||
|
||||
|
||||
|
||||
struct Import* GetObjImport (ObjData* O, unsigned Id)
|
||||
/* Get an import from an object file checking for a valid index */
|
||||
{
|
||||
if (Id >= CollCount (&O->Imports)) {
|
||||
Error ("Invalid import index (%u) in module `%s'",
|
||||
Id, GetObjFileName (O));
|
||||
}
|
||||
return CollAtUnchecked (&O->Imports, Id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct Export* GetObjExport (ObjData* O, unsigned Id)
|
||||
/* Get an export from an object file checking for a valid index */
|
||||
{
|
||||
if (Id >= CollCount (&O->Exports)) {
|
||||
Error ("Invalid export index (%u) in module `%s'",
|
||||
Id, GetObjFileName (O));
|
||||
}
|
||||
return CollAtUnchecked (&O->Exports, Id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct Scope* GetObjScope (ObjData* O, unsigned Id)
|
||||
/* Get a scope from an object file checking for a valid index */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user