Skip to content

Commit 3222aba

Browse files
Kenojonas-schulze
andauthored
Fix a few AbstractInterpreter nits (#36127)
* Fix a few AbstractInterpreter nits * Update base/compiler/types.jl Co-authored-by: Jonas Schulze <[email protected]> Co-authored-by: Jonas Schulze <[email protected]>
1 parent 890f34c commit 3222aba

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

base/compiler/abstractinterpretation.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# constants #
55
#############
66

7-
const DEFAULT_INTERPRETER = NativeInterpreter(UInt(0))
8-
97
const CoreNumType = Union{Int32, Int64, Float32, Float64}
108

119
const _REF_NAME = Ref.body.name

base/compiler/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
An abstract base class that allows multiple dispatch to determine the method of
77
executing Julia code. The native Julia LLVM pipeline is enabled by using the
8-
`TypeInference` concrete instantiatoin of this abstract class, others can be
8+
`NativeInterpreter` concrete instantiation of this abstract class, others can be
99
swapped in as long as they follow the AbstractInterpreter API.
1010
1111
All AbstractInterpreters are expected to provide at least the following methods:

base/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ function show(io::IO, inferred::Core.Compiler.InferenceResult)
19351935
end
19361936

19371937
function show(io::IO, ::Core.Compiler.NativeInterpreter)
1938-
print(io, "Core.Compiler.NativeInterpreter")
1938+
print(io, "Core.Compiler.NativeInterpreter(...)")
19391939
end
19401940

19411941

0 commit comments

Comments
 (0)