aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/MIR/MIRFunctionRecordsParser.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-12 22:37:49 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-12 22:37:49 +0800
commit3341938bb644e6fc39afa6a8fcb1306604999e42 (patch)
treea7586c0a8a9d3e7e9dbc8709daf4dd76ca51be5f /backend/lib/MIR/MIRFunctionRecordsParser.cpp
parent0bb35fa2306a66f1f0baf118619b5c1640ed9c01 (diff)
downloadrcc-project-3341938bb644e6fc39afa6a8fcb1306604999e42.tar.gz
rcc-project-3341938bb644e6fc39afa6a8fcb1306604999e42.tar.xz
[RISCV] Split the GlobalISel target components
Diffstat (limited to 'backend/lib/MIR/MIRFunctionRecordsParser.cpp')
-rw-r--r--backend/lib/MIR/MIRFunctionRecordsParser.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/lib/MIR/MIRFunctionRecordsParser.cpp b/backend/lib/MIR/MIRFunctionRecordsParser.cpp
index aed6947..04857bb 100644
--- a/backend/lib/MIR/MIRFunctionRecordsParser.cpp
+++ b/backend/lib/MIR/MIRFunctionRecordsParser.cpp
@@ -240,16 +240,14 @@ bool MIRDocumentParser::parseFunctionRecords(const yaml::Node &Root, MachineFunc
TargetNode->scalarStyle() == yaml::ScalarStyle::DoubleQuoted) {
++ContentOffset;
}
- const auto ErrorRange = [this, ContentOffset](std::size_t Begin,
- std::size_t End = 1U) {
+ const auto ErrorRange = [this, ContentOffset](std::size_t Begin, std::size_t End = 1U) {
return Result.Source.range(ContentOffset + Begin, ContentOffset + Begin + End);
};
const auto SkipSpace = [&Text](std::size_t &Cursor) {
while (Cursor < Text.size() && (Text[Cursor] == ' ' || Text[Cursor] == '\t'))
++Cursor;
};
- const auto ParseNumber = [&Text, &SkipSpace](std::size_t &Cursor,
- std::uint32_t &Value) {
+ const auto ParseNumber = [&Text, &SkipSpace](std::size_t &Cursor, std::uint32_t &Value) {
SkipSpace(Cursor);
const std::size_t Begin = Cursor;
while (Cursor < Text.size() && Text[Cursor] >= '0' && Text[Cursor] <= '9')