Skip to content

Commit

Permalink
Clarify message about registering overrides
Browse files Browse the repository at this point in the history
This is actually where we register _all_ overrides for a given function.
This message was confusing to users since it appeared we were only doing one.

Fixes #211
  • Loading branch information
langston-barrett committed Jun 24, 2019
1 parent 5528edb commit 67e7203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SAWScript/Crucible/LLVM/Builtins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ registerOverride opts cc _ctx top_loc cs = do
matches (Crucible.LLVMHandleInfo _ h) =
matchingStatics (L.Symbol (Text.unpack (W4.functionName (Crucible.handleName h)))) fsym
liftIO $
printOutLn opts Info $ "Registering override for `" ++ fstr ++ "`"
printOutLn opts Info $ "Registering overrides for `" ++ fstr ++ "`"
case filter matches (Map.elems (llvmctx ^. Crucible.symbolMap)) of
[] -> fail $ "Couldn't find declaration for `" ++ fstr ++ "` when registering override for it."
-- LLVMHandleInfo constructor has two existential type arguments,
Expand Down

0 comments on commit 67e7203

Please sign in to comment.