]> git.sur5r.net Git - cc65/blobdiff - src/ca65/span.c
Merge remote-tracking branch 'upstream/master' into a5200
[cc65] / src / ca65 / span.c
index 217e27149a290920ad687ac0a1e04b33e8e931f1..5b42d9eb509f06cbf5a4595bc25aaa2e3b086226 100644 (file)
@@ -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 */
@@ -404,7 +407,3 @@ void WriteSpans (void)
     /* Done writing the spans */
     ObjEndSpans ();
 }
-
-
-
-