1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/unittests/DebugInfo
Jason Liu 68dc9febcb Fix DWARF DebugInfo unit test errors when cross-compiling
Summary:
When building with a Default Target set we can experience issues
in the DWARF DebugInfo unit tests because:

They assume we can generate object files for the host platform.
Some tests assume the endianess of the target we are generating
DWARF for and the host match.

This patch correct these issues by ensuring the tests which
generate objects in memory are run with respect to
LVM_DEFAULT_TARGET_TRIPLE and it's endianess.

We also make sure we don't use the hosts address size for line test
and split the triple util function in DwarfUtils into a version
that takes an address size and one that doesn't.

See also for discussion:
http://lists.llvm.org/pipermail/llvm-dev/2019-March/131212.html

Patch by: daltenty

Differential Revision: https://reviews.llvm.org/D62084

llvm-svn: 362454
2019-06-03 22:22:03 +00:00
..
CodeView [codeview] Remove Type member from CVRecord 2019-04-04 00:28:48 +00:00
DWARF Fix DWARF DebugInfo unit test errors when cross-compiling 2019-06-03 22:22:03 +00:00
MSF Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PDB [PDB] Fix hash function used to write /src/headerblock 2019-04-29 23:09:35 +00:00
CMakeLists.txt [MSF] Move MSF unit tests to their own unittest target. 2017-08-02 22:26:09 +00:00