Skip to content

Commit c31b0c4

Browse files
committed
clang format files
1 parent 6b0769e commit c31b0c4

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

llvm/include/llvm/Passes/CodeGenPassBuilder.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,14 +1075,14 @@ void CodeGenPassBuilder<Derived, TargetMachineT>::addRegAllocPass(
10751075
// Use the specified -regalloc-npm={basic|greedy|fast|pbqp}
10761076
if (Opt.RegAlloc > RegAllocType::Default) {
10771077
switch (Opt.RegAlloc) {
1078-
case RegAllocType::Fast:
1079-
addPass(RegAllocFastPass());
1080-
break;
1081-
case RegAllocType::Greedy:
1082-
addPass(RAGreedyPass());
1083-
break;
1084-
default:
1085-
report_fatal_error("Register allocator not supported yet.", false);
1078+
case RegAllocType::Fast:
1079+
addPass(RegAllocFastPass());
1080+
break;
1081+
case RegAllocType::Greedy:
1082+
addPass(RAGreedyPass());
1083+
break;
1084+
default:
1085+
report_fatal_error("Register allocator not supported yet.", false);
10861086
}
10871087
return;
10881088
}

llvm/lib/Passes/PassBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,8 @@ parseBoundsCheckingOptions(StringRef Params) {
14071407
return Options;
14081408
}
14091409

1410-
Expected<RAGreedyPass::Options> parseRegAllocGreedyFilterFunc(PassBuilder &PB, StringRef Params) {
1410+
Expected<RAGreedyPass::Options>
1411+
parseRegAllocGreedyFilterFunc(PassBuilder &PB, StringRef Params) {
14111412
if (Params.empty() || Params == "all") {
14121413
return RAGreedyPass::Options();
14131414
}

0 commit comments

Comments
 (0)