From 6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Tue, 11 Aug 2026 17:37:42 +0800 Subject: [MIR] Accept fixed-baseline LLVM syntax --- backend/lib/MIR/MIRMetadataTextParser.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/lib/MIR/MIRMetadataTextParser.h') 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 parseValue(); [[nodiscard]] Expected parseLocation(); + [[nodiscard]] const TextRange &diagnosticRange() const noexcept { + return token().range(); + } + private: [[nodiscard]] const MIToken &token() const noexcept { return Tokens[Position]; -- cgit v1.2.3