Skip to content

Commit f6b9361

Browse files
authored
Merge pull request #3 from Keno/fbot/deps
Fix deprecations
2 parents 7495c38 + b41c4f8 commit f6b9361

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/DebuggerFramework.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module DebuggerFramework
55

66
abstract type StackFrame end
77

8-
immutable Suppressed{T}
8+
struct Suppressed{T}
99
item::T
1010
end
1111
Base.show(io::IO, x::Suppressed) = print(io, "<suppressed ", x.item, '>')

src/LineNumbers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export SourceFile, compute_line, LineBreaking
44
import Base: getindex, setindex!, length
55

66
# Offsets are 0 based
7-
immutable SourceFile
7+
struct SourceFile
88
data::Vector{UInt8}
99
offsets::Vector{UInt64}
1010
end
@@ -46,7 +46,7 @@ Indexing adaptor to map from a flat byte offset to a `[line][offset]` pair.
4646
Optionally, off may specify a byte offset relative to which the line number and
4747
offset should be computed
4848
"""
49-
immutable LineBreaking{T}
49+
struct LineBreaking{T}
5050
off::UInt64
5151
file::SourceFile
5252
obj::T

test/llvmir.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module LLVMIRDebugger
2424

2525
# Utils
2626
if !isdefined(:StartAtIterator)
27-
immutable StartAtIterator{T,S}
27+
struct StartAtIterator{T,S}
2828
it::T
2929
state::S
3030
end
@@ -35,7 +35,7 @@ module LLVMIRDebugger
3535
end
3636

3737
# The interpreter
38-
immutable ExecutionContext
38+
struct ExecutionContext
3939
M::pcpp"llvm::Module"
4040
Interp::pcpp"llvm::Interpreter"
4141
ExecutionContext(M::pcpp"llvm::Module") = new(M,
@@ -97,7 +97,7 @@ module LLVMIRDebugger
9797
end
9898

9999
# Debugger support
100-
immutable LLVMIRFrame <: DebuggerFramework.StackFrame
100+
struct LLVMIRFrame <: DebuggerFramework.StackFrame
101101
state::ExecutionContext
102102
idx::Int
103103
end
@@ -146,7 +146,7 @@ module LLVMIRDebugger
146146
"function $(getName(F)), BB $(getName(BB))"
147147
end
148148

149-
immutable AggregateValue
149+
struct AggregateValue
150150
values::Vector{Any}
151151
end
152152
Base.print(io::IO, val::AggregateValue) = print(io, val.values)

0 commit comments

Comments
 (0)