Use "df_" rather than "_df_" as prefix for defined functions

The underscore squelches potentially useful warnings, since if a defined
function isn't being used, something is indeed wrong.
This commit is contained in:
Luke Maurer 2018-07-03 13:10:06 -07:00
parent 2a6686375f
commit 6477e710d4

View File

@ -538,7 +538,7 @@ translateFunction :: forall arch t args ret .
-> FunctionFormula (Sym t) '(args, ret) -> FunctionFormula (Sym t) '(args, ret)
-> Q (Name, Dec, Dec) -> Q (Name, Dec, Dec)
translateFunction ltr ena ae archType ff = do translateFunction ltr ena ae archType ff = do
var <- newName ("_df_" ++ (ffName ff)) var <- newName ("df_" ++ (ffName ff))
argVars :: [Name] argVars :: [Name]
<- sequence $ FC.toListFC (\bv -> newName (bvarName bv)) (ffArgVars ff) <- sequence $ FC.toListFC (\bv -> newName (bvarName bv)) (ffArgVars ff)
let argVarMap :: Map.MapF (SI.BoundVar (Sym t)) (C.Const Name) let argVarMap :: Map.MapF (SI.BoundVar (Sym t)) (C.Const Name)