[PATCH] D11972: AMDGPU: Set MCAsmInfo::PointerSize
Konstantin Zhuravlyov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 2 15:07:44 PST 2017
kzhuravl added a comment.
In https://reviews.llvm.org/D11972#664174, @arsenm wrote:
> It seems the .debug_info section isn't emitted anymore. Is that intentional?
.debug_info section is not emitted because you have emissionKind: 0. Change it to emissionKind: FullDebug to get debug info emitted.
================
Comment at: test/CodeGen/AMDGPU/basic-debug-info.ll:8
+; CHECK: .byte 4 ; Address Size (in bytes)
+define void @basic_debug_info() #0 {
+entry:
----------------
- add `!dbg !4` before `{`
================
Comment at: test/CodeGen/AMDGPU/basic-debug-info.ll:18
+
+!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: 0, enums: !2, subprograms: !3)
+!1 = !DIFile(filename: "/tmp/basic-debug-info.cl", directory: "/Users/matt/src/llvm/build_debug")
----------------
- `emissionKind: 0` -> `emissionKind: FullDebug`
- remove `subprograms: !3`
================
Comment at: test/CodeGen/AMDGPU/basic-debug-info.ll:22
+!3 = !{!4}
+!4 = !DISubprogram(name: "basic_debug_info", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: false, function: void ()* @basic_debug_info, variables: !2)
+!5 = !DISubroutineType(types: !6)
----------------
- missing `distinct` before `DISubprogram`
- `function: void ()* @basic_debug_info` -> `unit: !0`
https://reviews.llvm.org/D11972
More information about the llvm-commits
mailing list