Skip to content

Commit

Permalink
Merge pull request #15954 from JuliaLang/jb/gensym_cleanup
Browse files Browse the repository at this point in the history
clean up some unnecessary code around GenSyms
  • Loading branch information
JeffBezanson committed May 2, 2016
2 parents 1657070 + e483ed2 commit 6f06c78
Show file tree
Hide file tree
Showing 21 changed files with 279 additions and 333 deletions.
4 changes: 2 additions & 2 deletions base/boot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export
StackOverflowError, SegmentationFault, UndefRefError, UndefVarError, TypeError,
# AST representation
Expr, GotoNode, LabelNode, LineNumberNode, QuoteNode, TopNode,
GlobalRef, NewvarNode, GenSym, Slot, SlotNumber, TypedSlot,
GlobalRef, NewvarNode, SSAValue, Slot, SlotNumber, TypedSlot,
# object model functions
fieldtype, getfield, setfield!, nfields, throw, tuple, is, ===, isdefined, eval,
# sizeof # not exported, to avoid conflicting with Base.sizeof
Expand Down Expand Up @@ -283,7 +283,7 @@ _new(:GotoNode, :Int)
_new(:TopNode, :Symbol)
_new(:NewvarNode, :SlotNumber)
_new(:QuoteNode, :ANY)
_new(:GenSym, :Int)
_new(:SSAValue, :Int)
eval(:((::Type{LineNumberNode})(f::Symbol, l::Int) = $(Expr(:new, :LineNumberNode, :f, :l))))
eval(:((::Type{GlobalRef})(m::Module, s::Symbol) = $(Expr(:new, :GlobalRef, :m, :s))))
eval(:((::Type{SlotNumber})(n::Int) = $(Expr(:new, :SlotNumber, :n))))
Expand Down
Loading

0 comments on commit 6f06c78

Please sign in to comment.