From: uz Date: Sun, 21 Aug 2011 19:46:47 +0000 (+0000) Subject: Don't remember types for spans if no debug info is requested. X-Git-Tag: V2.13.3~208 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc486bb4f5ccfd1aac14761e9e9a4272373e395c;p=cc65 Don't remember types for spans if no debug info is requested. git-svn-id: svn://svn.cc65.org/cc65/trunk@5254 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/span.c b/src/ca65/span.c index 217e27149..ebec761fe 100644 --- a/src/ca65/span.c +++ b/src/ca65/span.c @@ -204,8 +204,11 @@ static Span* MergeSpan (Span* S) void SetSpanType (Span* S, const StrBuf* Type) /* Set the generic type of the span to Type */ -{ - S->Type = GetStrBufId (Type); +{ + /* Ignore the call if we won't generate debug infos */ + if (DbgSyms) { + S->Type = GetStrBufId (Type); + } } @@ -351,7 +354,7 @@ static int CollectSpans (void* Entry, void* Data) return 0; } - + void WriteSpans (void) /* Write all spans to the object file */