]> git.sur5r.net Git - cc65/blobdiff - src/cc65/symentry.c
Change the OptStackOps function so that it adjusts the instruction pointer
[cc65] / src / cc65 / symentry.c
index aedf2652e0899fe744d387f30c24bdee05bb2053..e42c8bbaa52a45be4bcd537515a2f0deb1212045 100644 (file)
@@ -153,6 +153,19 @@ void DumpSymEntry (FILE* F, const SymEntry* E)
 
 
 
+int SymIsOutputFunc (const SymEntry* Sym)
+/* Return true if this is a function that must be output */
+{
+    /* Symbol must be a function which is defined and either extern or
+     * static and referenced.
+     */
+    return IsTypeFunc (Sym->Type)               &&
+           SymIsDef (Sym)                       &&
+           (Sym->Flags & (SC_REF | SC_EXTERN));
+}                                               
+
+
+
 const DeclAttr* SymGetAttr (const SymEntry* Sym, DeclAttrType AttrType)
 /* Return an attribute for this symbol or NULL if the attribute does not exist */
 {