[PATCH] D66372: [BPF] Fix bpf llvm-objdump issues

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 17 08:26:45 PDT 2019


yonghong-song marked an inline comment as done.
yonghong-song added inline comments.


================
Comment at: llvm/test/CodeGen/BPF/objdump_two_funcs.ll:48
+!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 9.0.0 (trunk 366422) (llvm/trunk 366423)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
+!1 = !DIFile(filename: "bug.c", directory: "/tmp/home/yhs/work/tests/llvm/reloc", checksumkind: CSK_MD5, checksum: "c7c9938d4e6989ca33db748213aab194", source: "__attribute__((section(\22s1\22)))\0Aint func1(int a) {\0A    return a * a;\0A}\0A__attribute__((section(\22s2\22)))\0Aint func2(int a) {\0A    return a * a * a;\0A}\0A")
+!2 = !{}
----------------
MaskRay wrote:
> Can you clean up these metadata tags? A lot of attributes, e.g directory, checksum, source, clang version, DILocation, etc, are not needed.
I need this to have reliable source in `llvm-objdump -S`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66372/new/

https://reviews.llvm.org/D66372





More information about the llvm-commits mailing list