record NoMangleMap : Type
MkNMMap : NameMap String -> NoMangleMap
.map : NoMangleMap -> NameMap String
initNoMangle : Ref Ctxt Defs => List String -> (String -> Bool) -> Core (Ref NoMangleMap NoMangleMap)
Get a map of all %export names
Errors for all invalid names, so the backend can skip checking
or adding escape characters.
@ backend what backend is this being used in?
@ valid a validator to check a name is valid
for the given backend
isNoMangle : NoMangleMap -> Name -> Maybe String
lookupNoMangle : Ref NoMangleMap NoMangleMap => Name -> Core (Maybe String)