diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 17:37:42 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 17:37:42 +0800 |
| commit | 6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0 (patch) | |
| tree | f363c502f0e2b9cda2f12928049275a433db6ad4 /backend/lib/MIR/MIRMetadataTextParser.h | |
| parent | adcf8c9b1bd1b47e00bf859693112cea1f7e8c9f (diff) | |
| download | rcc-project-6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0.tar.gz rcc-project-6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0.tar.xz | |
[MIR] Accept fixed-baseline LLVM syntax
Diffstat (limited to 'backend/lib/MIR/MIRMetadataTextParser.h')
| -rw-r--r-- | backend/lib/MIR/MIRMetadataTextParser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/lib/MIR/MIRMetadataTextParser.h b/backend/lib/MIR/MIRMetadataTextParser.h index b8ebb12..032523d 100644 --- a/backend/lib/MIR/MIRMetadataTextParser.h +++ b/backend/lib/MIR/MIRMetadataTextParser.h @@ -35,6 +35,10 @@ public: [[nodiscard]] Expected<MachineMetadataValue> parseValue(); [[nodiscard]] Expected<MachineDebugLocation> parseLocation(); + [[nodiscard]] const TextRange &diagnosticRange() const noexcept { + return token().range(); + } + private: [[nodiscard]] const MIToken &token() const noexcept { return Tokens[Position]; |
