-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Parse CFI instructions to create SFrame FREs #155496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6ce089d
1b1eb72
67b9205
f5b9edd
d2b2503
c1a97b0
8b54030
3415154
8dd4b52
3ea761c
c9e9ee8
be4da9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // TODO: Add other architectures as they gain sframe support | ||
| // REQUIRES: x86-registered-target | ||
| // RUN: llvm-mc --assemble --filetype=obj -triple x86_64 %s -o %t.o 2>&1 | FileCheck %s | ||
| // RUN: llvm-readelf --sframe %t.o | FileCheck --check-prefix=CHECK-NOFDES %s | ||
|
|
||
|
|
||
| .cfi_sections .sframe | ||
| f1: | ||
| .cfi_startproc simple | ||
| // CHECK: non-default RA register {{.*}} | ||
| .cfi_return_column 0 | ||
| nop | ||
| // CHECK: {{.*}} adjusting CFA offset without a base register.{{.*}} | ||
| .cfi_def_cfa_offset 16 // no line number reported here. | ||
| nop | ||
| // CHECK: [[@LINE+1]]:{{.*}} adjusting CFA offset without a base register.{{.*}} | ||
| .cfi_adjust_cfa_offset 16 | ||
| nop | ||
| .cfi_endproc | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. something wrong with the indentation here. Tabs?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's still something wrong with the indentation on this line (.cfi_endproc), at least when I view it in github UI. (I would expect it to start at the same column as the other .cfi directives. |
||
|
|
||
| f2: | ||
| .cfi_startproc | ||
| nop | ||
| // CHECK: canonical Frame Address not in stack- or frame-pointer. {{.*}} | ||
| .cfi_def_cfa 0, 4 | ||
| nop | ||
|
|
||
| .cfi_endproc | ||
|
|
||
| // CHECK-NOFDES: Num FDEs: 0 | ||
| // CHECK-NOFDES: Num FREs: 0 | ||
Uh oh!
There was an error while loading. Please reload this page.