1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test
Duncan P. N. Exon Smith 13037017ae AsmPrinter: Allow null subroutine type
Currently the DWARF backend requires that subprograms have a type, and
the type is ignored if it has an empty type array.  The long term
direction here -- see PR23079 -- is instead to skip the type entirely if
there's no valid type.

It turns out we have cases in tree of missing types on subprograms, but
since they're not referenced by compile units, the backend never crashes
on them.  One option would be to add a Verifier check that subprograms
have types, and fix the bitrot.  However, this is a fair bit of churn
(20-30 testcases) that would be reversed anyway by PR23079.

I found this inconsistency because of a WIP patch and upgrade script for
PR23367 that started crashing on test/DebugInfo/2010-10-01-crash.ll.
This commit updates the testcase to reference the subprogram from the
compile unit, and fixes the resulting crash (in line with the direction
of PR23079).  This also updates `DIBuilder` to stop assuming a non-null
pointer for the subroutine types.

llvm-svn: 246333
2015-08-28 21:38:24 +00:00
..
Analysis Fix: CFLAA -- Mark no-args returns as unknown 2015-08-28 00:16:18 +00:00
Assembler DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
Bindings [OCaml] Do not use -warn-error in tests. 2015-07-17 17:33:23 +00:00
Bitcode DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
BugPoint DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
CodeGen DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
DebugInfo AsmPrinter: Allow null subroutine type 2015-08-28 21:38:24 +00:00
Examples Disable llvm/test/Examples/ for now while investigating. 2015-08-28 03:32:43 +00:00
ExecutionEngine [mips64][mcjit] Add N64R6 relocations tests and fix N64R2 tests 2015-08-28 18:02:53 +00:00
Feature [WinEH] Require token linkage in EH pad/ret signatures 2015-08-23 00:26:33 +00:00
FileCheck
Instrumentation DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
Integer
JitListener DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
LibDriver Add support for producing thin archives in llvm-lib. 2015-07-17 16:01:11 +00:00
Linker DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
LTO Tweak XFAIL line for mips. 2015-08-28 04:07:52 +00:00
MC DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
Object Re-apply r246276 - Object: Teach llvm-ar to create symbol table for COFF short import files 2015-08-28 07:40:30 +00:00
Other Update test suite to make "ninja check" succeed without native backend builtin 2015-08-04 06:32:54 +00:00
SymbolRewriter
TableGen TableGen: Support folding casts from bits to int 2015-07-31 01:12:06 +00:00
tools Split the gold tests into X86 and PowerPC directories. 2015-08-28 20:33:56 +00:00
Transforms Revert r246232 and r246304. 2015-08-28 21:13:39 +00:00
Unit
Verifier DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
YAMLParser
.clang-format
CMakeLists.txt Recommit r246175 - Add Kaleidoscope regression tests, with a fix to make sure 2015-08-27 20:31:44 +00:00
lit.cfg Recommit r246175 - Add Kaleidoscope regression tests, with a fix to make sure 2015-08-27 20:31:44 +00:00
lit.site.cfg.in Recommit r246175 - Add Kaleidoscope regression tests, with a fix to make sure 2015-08-27 20:31:44 +00:00
Makefile Recommit r246175 - Add Kaleidoscope regression tests, with a fix to make sure 2015-08-27 20:31:44 +00:00
Makefile.tests
TestRunner.sh