Files
swift-mirror/test/Demangle/yaml-dump.swift
Michael Gottesman cdbaf9074f [demangle] Add a new tool called swift-demangle-yamldump.
This is a separate tool so we can use all of LLVM without worrying about
creating a dependency from the demangler on LLVM's libsupport.

I am going to use it to fix cmpcodesize for the new mangling by eliminating
cmpcodesize's usage of regex to classify symbols. Instead, we can just read in
the yaml version of the symbol trees for each demangled node and process that
instead.

rdar://41146023
2018-06-20 13:47:25 -07:00

15 lines
565 B
Swift

// RUN: %swift-demangle-yamldump '_$S4main5inneryys5Int32Vz_yADctF25closure_with_box_argumentxz_Bi32__lXXTf1nc_n' | %FileCheck %s
// CHECK: ---
// CHECK: name: '_$S4main5inneryys5Int32Vz_yADctF25closure_with_box_argumentxz_Bi32__lXXTf1nc_n'
// CHECK: kind: Global
// CHECK: children:
// CHECK: - name: ''
// CHECK: kind: FunctionSignatureSpecialization
// CHECK: children:
// CHECK: - name: ''
// CHECK: kind: Function
// CHECK: children:
// CHECK: ...