fix(ghidra): classify modern Swift manglings in swift type analysis (#1208)
* fix(ghidra): classify modern Swift manglings in swift type analysis Categorize modern Swift 4.2+ manglings ($s, _$s) instead of dropping them in analyze_swift_types. The classifier only accepted the legacy _Tt marker, so procedure names reported by current providers produced an empty inventory. Legacy _Tt families and behavior are unchanged. Fixes #1187. * fix(swift): retain provider aliases and category unknowns --------- Co-authored-by: Saim Shafique <sx4imm@gmail.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
co-authored by
Saim Shafique
morluto
parent
04a516b1e3
commit
6935dc7fe1
@@ -0,0 +1,10 @@
|
||||
protocol Scoring { func score(_ x: Int) -> Int }
|
||||
struct Pair { var a: Int; var b: Int }
|
||||
struct Scorer: Scoring {
|
||||
@inline(never) func score(_ x: Int) -> Int { x + 29 }
|
||||
}
|
||||
@inline(never)
|
||||
func swiftIndirect(_ s: any Scoring, _ x: Int) -> Int { s.score(x) }
|
||||
@inline(never)
|
||||
func swiftPair(_ p: Pair) -> Int { p.a + 3 * p.b }
|
||||
print(swiftIndirect(Scorer(), CommandLine.arguments.count) + swiftPair(Pair(a: 1, b: 2)))
|
||||
Reference in New Issue
Block a user