mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
282db98b71
Prior to this change, there are a few tests called llvm-symbolizer* in the DebugInfo test area. These really were testing either the DebugInfo or Symbolizer library, rather than the llvm-symbolizer tool itself, so this patch renames them to be clearer that they aren't explicitly tests for llvm-symbolizer (such tests belong in test/tools/llvm-symbolizer). This patch also reinstates the copying of a DWO file, removed previously in r352752. The test needs this so that it could possibly fail. Finally, some of the tests have been simplified slightly by removing unnecessary switches and/or unused check-prefixes. Reviewed by: dblaikie Differential Revision: https://reviews.llvm.org/D57518 llvm-svn: 352847
23 lines
877 B
Plaintext
23 lines
877 B
Plaintext
Copy the DWO and then cd into the output directory, so that the symbolizer would
|
|
find the DWO if it attempted to.
|
|
RUN: rm -rf %t && mkdir -p %t
|
|
RUN: cd %t
|
|
RUN: cp %p/Inputs/split-dwarf-no-skel-address.dwo %t
|
|
RUN: llvm-symbolizer --inlining --no-demangle \
|
|
RUN: --obj=%p/Inputs/split-dwarf-no-skel-address.o 0x4 | FileCheck %s
|
|
|
|
Built from the following source:
|
|
void f1();
|
|
__attribute__((always_inline)) inline void f2() { f1(); }
|
|
void f3() { f2(); }
|
|
|
|
Compiled to assembly with clang, modified the skeleton CU to remove the
|
|
high/low pc (& update the CU length field and abbrev to match) & then
|
|
compile/objcopy to make the .o and .dwo.
|
|
|
|
Ensure that the f2 inlined frame is not included - it's inefficient to have to
|
|
go and load all the debug info and search for the address ranges, so assume
|
|
that a lack of ranges on the CU means the CU covers no addresses.
|
|
|
|
CHECK-NOT: _Z2f2v
|