Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 25a52af46a14
Choose a base ref
...
head repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1274a2e27aa2
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Sep 19, 2016

  1. Fixed #3320: ignore NonGenericModuleType in debug info

    Ary Borenszweig committed Sep 19, 2016
    Copy the full SHA
    a24ed53 View commit details
  2. Debug: hide irrelevant puts

    Ary Borenszweig committed Sep 19, 2016
    Copy the full SHA
    1274a2e View commit details
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/compiler/crystal/codegen/debug.cr
8 changes: 6 additions & 2 deletions src/compiler/crystal/codegen/debug.cr
Original file line number Diff line number Diff line change
@@ -67,6 +67,10 @@ module Crystal
di_builder.create_enumeration_type(nil, type.to_s, nil, 1, 32, 32, elements, get_debug_type(type.base_type))
end

def create_debug_type(type : NonGenericModuleType)
# puts "Unsupported type for debugging: #{type} (#{type.class})"
end

def create_debug_type(type : InstanceVarContainer)
ivars = type.all_instance_vars
element_types = [] of LibLLVMExt::Metadata
@@ -103,11 +107,11 @@ module Crystal
end

def create_debug_type(type : StaticArrayInstanceType)
puts "Unsupported type for debugging: #{type} (#{type.class})"
# puts "Unsupported type for debugging: #{type} (#{type.class})"
end

def create_debug_type(type)
puts "Unsupported type for debugging: #{type} (#{type.class})"
# puts "Unsupported type for debugging: #{type} (#{type.class})"
end

def declare_variable(var_name, var_type, alloca, target_def)