mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
15 lines
565 B
Swift
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: ...
|
|
|