-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FormatUID and NO_UID to m3middle/arc/M3CG.[im]3.
FormatUID converts a UID to the base-62 Character form used in linker symbols in stabs debug format. Apparently, a Modula3-coded version of this function did not exist. It is needed by M3CG_LLVM. (A C-coded version already exists in parse.c). There are duplicate declarations of NO_UID in m3front/src/type/TypeRep.i3, m3front/src/misc/M3String.m3, and m3front/src/misc/M3WString.m3. Also, m3cc/gcc*/gcc/m3cg/parse.c contain C declarations, and cm3ide/src/nodes/Type.i3 contains a declaration with zero as value, while the others are all minus one. This should be consistified and centralized. This commit puts a Modula-3 declaration in M3CG, where it can be centrally referenced, and an initial use of it in FormatUID.
- Loading branch information
1 parent
e852529
commit e6d9a9f
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters