DebugLocation

public struct DebugLocation : IRMetadata

A DebugLocation represents a location in source.

Debug locations are de-duplicated by file and line. If more than one location inside a given scope needs to share a line, a discriminator value must be set or those locations will be considered equivalent.

  • Declaration

    Swift

    public func asMetadata() -> LLVMMetadataRef
  • Retrieves the line described by this location.

    Declaration

    Swift

    public var line: Int { get }
  • Retrieves the column described by this location.

    Declaration

    Swift

    public var column: Int { get }
  • Retrieves the enclosing scope containing this location.

    Declaration

    Swift

    public var scope: DIScope { get }
  • Declaration

    Swift

    public init(llvm: LLVMMetadataRef)