Skip to content

Commit

Permalink
Add field for demangled symbol name
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Mar 11, 2022
1 parent 1b6a0a5 commit 3080bca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Meter/Symbolicator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import BinaryImage
public struct SymbolInfo: Codable, Hashable {
public var offset: Int?
public var symbol: String
public var demangledSymbol: String?
public var file: String?
public var lineNumber: Int?

public init(symbol: String, offset: Int? = nil, file: String? = nil, lineNumber: Int? = nil) {
public init(symbol: String, demangledSymbol: String? = nil, offset: Int? = nil, file: String? = nil, lineNumber: Int? = nil) {
self.symbol = symbol
self.demangledSymbol = demangledSymbol
self.offset = offset
self.file = file
self.lineNumber = lineNumber
Expand Down

0 comments on commit 3080bca

Please sign in to comment.