forked from swiftlang/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MC: force eager evaluation of relocations in
.debug_info
Force eager evaluation of symbolic difference on debug_info which is required to be resolved eagerly for fission as dwo sections may not contain relocations. Fixes: llvm#56642
- Loading branch information
Showing
4 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
; RUN: llc -mtriple riscv64-unknown-linux-gnu -filetype obj %s -o - | llvm-dwarfdump - | FileCheck %s -check-prefix CHECK-DWARF | ||
; RUN: llc -mtriple riscv64-unknown-linux-gnu -filetype obj %s -o - | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-OBJ | ||
|
||
source_filename = "reduced.c" | ||
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n64-S128" | ||
target triple = "riscv64-unknown-linux-gnu" | ||
|
||
define dso_local signext i32 @f() #0 !dbg !7 { | ||
entry: | ||
ret i32 32, !dbg !13 | ||
} | ||
|
||
attributes #0 = { noinline nounwind optnone "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+64bit" } | ||
|
||
!llvm.dbg.cu = !{!0} | ||
!llvm.module.flags = !{!2, !3, !4, !5} | ||
!llvm.ident = !{!6} | ||
|
||
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 15.0.0", isOptimized: false, runtimeVersion: 0, splitDebugFilename: "reduced.dwo", emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None) | ||
!1 = !DIFile(filename: "reduced.c", directory: "/SourceCache") | ||
!2 = !{i32 2, !"Debug Info Version", i32 3} | ||
!3 = !{i32 1, !"wchar_size", i32 4} | ||
!4 = !{i32 1, !"target-abi", !"lp64"} | ||
!5 = !{i32 1, !"SmallDataLimit", i32 0} | ||
!6 = !{!"clang version 15.0.0"} | ||
!7 = distinct !DISubprogram(name: "f", scope: !8, file: !8, line: 2, type: !9, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !12) | ||
!8 = !DIFile(filename: "/SourceCache/reduced.c", directory: "") | ||
!9 = !DISubroutineType(types: !10) | ||
!10 = !{!11} | ||
!11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) | ||
!12 = !{} | ||
!13 = !DILocation(line: 2, column: 15, scope: !7) | ||
|
||
; CHECK-DWARF: 0x0000002a: DW_TAG_subprogram | ||
; CHECK-DWARF-NEXT: DW_AT_low_pc (0x0000000000000000) | ||
; CHECK-DWARF-NEXT: DW_AT_high_pc (0x0000000000000008) | ||
|
||
; CHECK-OBJ: Section (5) .rela.debug_info { | ||
; CHECK-OBJ: 0x1A R_RISCV_32 - 0x0 | ||
; CHECK-OBJ: 0x1E R_RISCV_64 - 0x0 | ||
; CHECK-OBJ: } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters