Skip to content

Commit 2e440b0

Browse files
committed
Fixed typo and format of comments according to 80-column width.
1 parent 92bd2e1 commit 2e440b0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,12 +1321,11 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
13211321

13221322
int getUncondBranchEncodingSize() const override { return 28; }
13231323

1324-
// This helper function creates the snippet of code
1325-
// that compares a register RegNo with an immedaite Imm,
1326-
// and jumps to Target if they are equal.
1324+
// This helper function creates the snippet of code that compares a register
1325+
// RegNo with an immedaite Imm, and jumps to Target if they are equal.
13271326
// cmp RegNo, #Imm
13281327
// b.eq Target
1329-
// where cmp is an for subs, which results in the code below:
1328+
// where cmp is an alias for subs, which results in the code below:
13301329
// subs xzr, RegNo, #Imm
13311330
// b.eq Target.
13321331
InstructionListType createCmpJE(MCPhysReg RegNo, int64_t Imm,
@@ -1345,12 +1344,11 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
13451344
return Code;
13461345
}
13471346

1348-
// This helper function creates the snippet of code
1349-
// that compares a register RegNo with an immedaite Imm,
1350-
// and jumps to Target if they are not equal.
1347+
// This helper function creates the snippet of code that compares a register
1348+
// RegNo with an immedaite Imm, and jumps to Target if they are not equal.
13511349
// cmp RegNo, #Imm
13521350
// b.ne Target
1353-
// where cmp is an for subs, which results in the code below:
1351+
// where cmp is an alias for subs, which results in the code below:
13541352
// subs xzr, RegNo, #Imm
13551353
// b.ne Target.
13561354
InstructionListType createCmpJNE(MCPhysReg RegNo, int64_t Imm,

0 commit comments

Comments
 (0)