llvm-project
14a3f128 - [FLMD][DebugInfo] Add classes for function-local DebugLocs

Commit
1 day ago
[FLMD][DebugInfo] Add classes for function-local DebugLocs This patch adds two new classes. The first, FLDebugLoc, represents a DebugLoc in a function-local context; combined with the correct `!MDFunctionLocalContext`, this class is equivalent in information to a `!DILocation`, with some exceptions (IsImplicitCode is not included, IRLayers are to-be-implemented). The second, DIDbgLoc, is a new MDNode type which wraps an `MDFunctionLocalContext*` and an `FLDebugLoc`. This makes it an effective substitute for `DILocation` in metadata, able to replicate the interface of `DILocation` entirely. Implementation of this interface is added in a later patch.
Author
Committer
Parents
Loading