Skip to content

Commit 3ea761c

Browse files
Fix error style.
1 parent 8dd4b52 commit 3ea761c

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

llvm/lib/MC/MCSFrame.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,16 @@ class SFrameEmitterImpl {
119119
return true;
120120
}
121121
Streamer.getContext().reportWarning(
122-
I.getLoc(), "Canonical Frame Address not in stack- or frame-pointer. "
123-
"Omitting SFrame unwind info for this function.");
122+
I.getLoc(), "canonical Frame Address not in stack- or frame-pointer. "
123+
"Omitting SFrame unwind info for this function");
124124
return false;
125125
}
126126

127127
bool setCFAOffset(SFrameFRE &FRE, const SMLoc &Loc, size_t Offset) {
128128
if (!FRE.CFARegSet) {
129129
Streamer.getContext().reportWarning(
130-
Loc, "Adjusting CFA offset without a base register. "
131-
"Omitting SFrame unwind info for this function.");
130+
Loc, "adjusting CFA offset without a base register. "
131+
"Omitting SFrame unwind info for this function");
132132
return false;
133133
}
134134
FRE.CFAOffset = Offset;
@@ -233,9 +233,9 @@ class SFrameEmitterImpl {
233233
// hand-written assembly.
234234
if (DF.RAReg != RAReg) {
235235
Streamer.getContext().reportWarning(
236-
SMLoc(), "Non-default RA register in .cfi_return_column " +
236+
SMLoc(), "non-default RA register in .cfi_return_column " +
237237
Twine(DF.RAReg) +
238-
". Omitting SFrame unwind info for this function.");
238+
". Omitting SFrame unwind info for this function");
239239
Valid = false;
240240
}
241241
MCSymbol *LastLabel = DF.Begin;

llvm/test/MC/ELF/cfi-sframe-errors.s

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@
44
// RUN: llvm-readelf --sframe %t.o | FileCheck --check-prefix=CHECK-NOFDES %s
55

66

7-
.cfi_sections .sframe
7+
.cfi_sections .sframe
88
f1:
9-
.cfi_startproc simple
10-
// CHECK: Non-default RA register {{.*}}
9+
.cfi_startproc simple
10+
// CHECK: non-default RA register {{.*}}
1111
.cfi_return_column 0
12-
nop
13-
// CHECK: {{.*}} Adjusting CFA offset without a base register.{{.*}}
12+
nop
13+
// CHECK: {{.*}} adjusting CFA offset without a base register.{{.*}}
1414
.cfi_def_cfa_offset 16 // no line number reported here.
15-
nop
16-
// CHECK: [[@LINE+1]]:{{.*}} Adjusting CFA offset without a base register.{{.*}}
15+
nop
16+
// CHECK: [[@LINE+1]]:{{.*}} adjusting CFA offset without a base register.{{.*}}
1717
.cfi_adjust_cfa_offset 16
18-
nop
18+
nop
1919
.cfi_endproc
2020

21-
f2:
21+
f2:
2222
.cfi_startproc
23-
nop
24-
// CHECK: Canonical Frame Address not in stack- or frame-pointer. {{.*}}
23+
nop
24+
// CHECK: canonical Frame Address not in stack- or frame-pointer. {{.*}}
2525
.cfi_def_cfa 0, 4
26-
nop
27-
26+
nop
27+
2828
.cfi_endproc
2929

3030
// CHECK-NOFDES: Num FDEs: 0

0 commit comments

Comments
 (0)