Fix GSYM tests to run the yaml files and fix test failures on some machines.
authorGreg Clayton <gclayton@fb.com>
Thu, 5 Mar 2020 03:12:08 +0000 (19:12 -0800)
committerGreg Clayton <gclayton@fb.com>
Thu, 5 Mar 2020 03:14:08 +0000 (19:14 -0800)
commit4050b01ba9ece02721ec496383baee219ca8cc2b
tree1d622e8c01625247f2081bfdb06dd1a9f965a3fc
parent3fda1fde8f7bdf3b90d8700f5a386f63409b4313
Fix GSYM tests to run the yaml files and fix test failures on some machines.

YAML files were not being run during lit testing as there was no lit.local.cfg file. Once this was fixed, some buildbots would fail due to a StringRef that pointed to a std::string inside of a temporary llvm::Triple object. These issues are fixed here by making a local triple object that stays around long enough so the StringRef points to valid data. Fixed memory sanitizer bot bugs as well.

Differential Revision: https://reviews.llvm.org/D75390
llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
llvm/test/tools/llvm-gsymutil/ARM_AArch64/fat-macho-dwarf.yaml [moved from llvm/test/tools/llvm-gsymutil/fat-macho-dwarf.yaml with 100% similarity]
llvm/test/tools/llvm-gsymutil/ARM_AArch64/lit.local.cfg [new file with mode: 0644]
llvm/test/tools/llvm-gsymutil/X86/elf-dwarf.yaml [moved from llvm/test/tools/llvm-gsymutil/elf-dwarf.yaml with 100% similarity]
llvm/test/tools/llvm-gsymutil/X86/lit.local.cfg [new file with mode: 0644]
llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml [moved from llvm/test/tools/llvm-gsymutil/mach-dwarf.yaml with 100% similarity]
llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp