[PATCH] D43390: [DEBUGINFO] Add support for emission of the inlined strings.
Paul Robinson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 13:27:53 PST 2018
probinson added a comment.
Instead of all the elaborate checks, you could use `llvm-dwarfdump -debug-str` (dump just the .debug_str section) and then use `CHECK-NOT: "` to prove it's empty.
================
Comment at: test/DebugInfo/Generic/inlined-strings.ll:4
+; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t -dwarf-inlined-strings=Enable
+; RUN: llvm-dwarfdump -show-form %t | FileCheck %s
+
----------------
You can avoid generating the temp file here. Instead of `> %t` you do `-o -` and then pipe it to llvm-dwarfdump with an input file of `-`.
Repository:
rL LLVM
https://reviews.llvm.org/D43390
More information about the llvm-commits
mailing list