[PATCH] D91678: Symbolizer test for Basic block sections

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 9 00:11:23 PST 2021


MaskRay added inline comments.


================
Comment at: llvm/test/DebugInfo/llvm-symbolizer-bbsections-test.s:2
+# REQUIRES: x86-registered-target
+# RUN: clang -c %s -o %t
+# RUN: llvm-symbolizer --obj=%t 0x30 0x20 0x6c 0xf | FileCheck %s
----------------
dblaikie wrote:
> MaskRay wrote:
> > Hmmm. `llvm/test` tests cannot use `clang` due to layering reason.
> Oh, right, yeah - sorry I missed that. Like the other test I mentioned/others in this directory, you can use llvm-mc to assemble, rather than clang. (probably best to go check  llvm/test/DebugInfo/symbolize-paths.s by way of example)
`llvm-mc -filetype=obj -triple=x86_64 %s -o %t`

Without `--target=` or `-target ` the default target triple is inferred from `LLVM_DEFAULT_TARGET_TRIPLE`. The object file may not be x86.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91678



More information about the llvm-commits mailing list