@@ -193,23 +193,22 @@ end
193
193
module IRShow end # relies on string and IO operations defined in Base
194
194
baremodule TrimVerifier end # relies on IRShow, so define this afterwards
195
195
196
- function load_irshow! ()
197
- if isdefined (Base, :end_base_include )
198
- # This code path is exclusively for Revise, which may want to re-run this
199
- # after bootstrap.
200
- Compilerdir = Base. dirname (Base. String (@__SOURCE_FILE__ ))
201
- include (IRShow, Base. joinpath (Compilerdir, " ssair/show.jl" ))
202
- include (TrimVerifier, Base. joinpath (Compilerdir, " verifytrim.jl" ))
203
- else
196
+ if isdefined (Base, :end_base_include )
197
+ # When this module is loaded as the standard library, include these files as usual
198
+ include (IRShow, " ssair/show.jl" )
199
+ include (TrimVerifier, " verifytrim.jl" )
200
+ else
201
+ function load_irshow! ()
202
+ Base. delete_method (Base. which (verify_typeinf_trim, (IO, Vector{Any}, Bool)),)
204
203
include (IRShow, " ssair/show.jl" )
205
204
include (TrimVerifier, " verifytrim.jl" )
206
205
end
207
- end
208
- if ! isdefined (Base, :end_base_include )
209
- # During bootstrap, skip including this file and defer it to base/show.jl to include later
210
- else
211
- # When this module is loaded as the standard library, include this file as usual
212
- load_irshow! ()
206
+ function verify_typeinf_trim (io :: IO , codeinfos :: Vector{Any} , onlywarn :: Bool )
207
+ # stub implementation
208
+ msg = " --trim verifier not defined "
209
+ onlywarn ? println (io, msg) : error (msg)
210
+ end
211
+ # During bootstrap, skip including these files and defer to base/show.jl to include it later
213
212
end
214
213
215
214
end # baremodule Compiler
0 commit comments