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/Support/TextDiagnostic.cpp | |
| 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/Support/TextDiagnostic.cpp')
| -rw-r--r-- | backend/lib/Support/TextDiagnostic.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/backend/lib/Support/TextDiagnostic.cpp b/backend/lib/Support/TextDiagnostic.cpp index 1c027c3..e4c2dec 100644 --- a/backend/lib/Support/TextDiagnostic.cpp +++ b/backend/lib/Support/TextDiagnostic.cpp @@ -65,11 +65,8 @@ std::string formatTextDiagnostic(const TextDiagnostic &Diagnostic, const TextSou const std::string_view SourceName = Diagnostic.SourceName.empty() ? Source.name() : std::string_view(Diagnostic.SourceName); - Output << SourceName << ':' << Position.Line << ':' << Position.Column << ": " - << getDiagnosticSeverityName(Diagnostic.Severity); - if (!Diagnostic.Category.empty()) - Output << '[' << Diagnostic.Category << ']'; - Output << ": " << Diagnostic.Message; + Output << getDiagnosticSeverityName(Diagnostic.Severity) << ": " << SourceName << ':' + << Position.Line << ':' << Position.Column << ": " << Diagnostic.Message; const std::string_view SourceLine = Source.line(Position.Line); if (SourceLine.empty()) |
