Move the DebugEmissionKind enum from DIBuilder into DICompileUnit.
authorAdrian Prantl <aprantl@apple.com>
Thu, 31 Mar 2016 23:56:58 +0000 (23:56 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 31 Mar 2016 23:56:58 +0000 (23:56 +0000)
commitb939a257070d71eee3c18415ca6104731c7923a6
tree19c0a55e59c2cab8bc8849d68af08dd624eb0dd0
parent649159df3cdd797f323eb8f198e6e77816ba93ef
Move the DebugEmissionKind enum from DIBuilder into DICompileUnit.

This mostly cosmetic patch moves the DebugEmissionKind enum from DIBuilder
into DICompileUnit. DIBuilder is not the right place for this enum to live
in — a metadata consumer should not have to include DIBuilder.h.
I also added a Verifier check that checks that the emission kind of a
DICompileUnit is actually legal.

http://reviews.llvm.org/D18612
<rdar://problem/25427165>

llvm-svn: 265077
216 files changed:
llvm/include/llvm/IR/DIBuilder.h
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/LLToken.h
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/DIBuilder.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/IR/Verifier.cpp
llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
llvm/test/Assembler/dicompileunit.ll
llvm/test/Assembler/drop-debug-info.ll
llvm/test/Assembler/invalid-dicompileunit-emissionkind-bad.ll [new file with mode: 0644]
llvm/test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll
llvm/test/CodeGen/ARM/2009-10-16-Scope.ll
llvm/test/CodeGen/ARM/2010-04-15-ScavengerDebugValue.ll
llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll
llvm/test/CodeGen/ARM/coalesce-dbgvalue.ll
llvm/test/CodeGen/ARM/debug-frame-vararg.ll
llvm/test/CodeGen/ARM/debug-frame.ll
llvm/test/CodeGen/ARM/debug-segmented-stacks.ll
llvm/test/CodeGen/Inputs/DbgValueOtherTargets.ll
llvm/test/CodeGen/MIR/X86/invalid-metadata-node-type.mir
llvm/test/CodeGen/MIR/X86/stack-object-debug-info.mir
llvm/test/CodeGen/PowerPC/dbg.ll
llvm/test/CodeGen/PowerPC/pr17168.ll
llvm/test/CodeGen/PowerPC/unwind-dw2-g.ll
llvm/test/CodeGen/Thumb/2010-07-15-debugOrdering.ll
llvm/test/CodeGen/X86/2009-02-12-DebugInfoVLA.ll
llvm/test/CodeGen/X86/2009-10-16-Scope.ll
llvm/test/CodeGen/X86/2010-01-18-DbgValue.ll
llvm/test/CodeGen/X86/2010-02-01-DbgValueCrash.ll
llvm/test/CodeGen/X86/2010-06-01-DeadArg-DbgInfo.ll
llvm/test/CodeGen/X86/2010-07-06-DbgCrash.ll
llvm/test/CodeGen/X86/2010-09-16-EmptyFilename.ll
llvm/test/CodeGen/X86/2010-11-02-DbgParameter.ll
llvm/test/CodeGen/X86/2012-11-30-handlemove-dbg.ll
llvm/test/CodeGen/X86/2012-11-30-misched-dbg.ll
llvm/test/CodeGen/X86/2012-11-30-regpres-dbg.ll
llvm/test/CodeGen/X86/StackColoring-dbg.ll
llvm/test/CodeGen/X86/dwarf-comp-dir.ll
llvm/test/CodeGen/X86/null-streamer.ll
llvm/test/CodeGen/X86/unknown-location.ll
llvm/test/DebugInfo/AArch64/dwarfdump.ll
llvm/test/DebugInfo/AArch64/struct_by_value.ll
llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
llvm/test/DebugInfo/ARM/tls.ll
llvm/test/DebugInfo/COFF/asm.ll
llvm/test/DebugInfo/COFF/multifile.ll
llvm/test/DebugInfo/COFF/multifunction.ll
llvm/test/DebugInfo/COFF/simple.ll
llvm/test/DebugInfo/Generic/2009-11-03-InsertExtractValue.ll
llvm/test/DebugInfo/Generic/2009-11-05-DeadGlobalVariable.ll
llvm/test/DebugInfo/Generic/2009-11-06-NamelessGlobalVariable.ll
llvm/test/DebugInfo/Generic/2009-11-10-CurrentFn.ll
llvm/test/DebugInfo/Generic/2010-01-05-DbgScope.ll
llvm/test/DebugInfo/Generic/2010-03-12-llc-crash.ll
llvm/test/DebugInfo/Generic/2010-03-24-MemberFn.ll
llvm/test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll
llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll
llvm/test/DebugInfo/Generic/2010-05-03-DisableFramePtr.ll
llvm/test/DebugInfo/Generic/2010-05-03-OriginDIE.ll
llvm/test/DebugInfo/Generic/2010-05-10-MultipleCU.ll
llvm/test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll
llvm/test/DebugInfo/Generic/2010-07-19-Crash.ll
llvm/test/DebugInfo/Generic/2010-10-01-crash.ll
llvm/test/DebugInfo/Generic/array.ll
llvm/test/DebugInfo/Generic/bug_null_debuginfo.ll
llvm/test/DebugInfo/Generic/dbg-at-specficiation.ll
llvm/test/DebugInfo/Generic/debug-info-qualifiers.ll
llvm/test/DebugInfo/Generic/debuginfofinder-multiple-cu.ll
llvm/test/DebugInfo/Generic/dwarf-public-names.ll
llvm/test/DebugInfo/Generic/empty.ll
llvm/test/DebugInfo/Generic/enum.ll
llvm/test/DebugInfo/Generic/global.ll
llvm/test/DebugInfo/Generic/inheritance.ll
llvm/test/DebugInfo/Generic/inline-debug-info-multiret.ll
llvm/test/DebugInfo/Generic/inline-debug-info.ll
llvm/test/DebugInfo/Generic/inlined-vars.ll
llvm/test/DebugInfo/Generic/member-order.ll
llvm/test/DebugInfo/Generic/member-pointers.ll
llvm/test/DebugInfo/Generic/ptrsize.ll
llvm/test/DebugInfo/Generic/template-recursive-void.ll
llvm/test/DebugInfo/Generic/tu-composite.ll
llvm/test/DebugInfo/Generic/tu-member-pointer.ll
llvm/test/DebugInfo/Generic/varargs.ll
llvm/test/DebugInfo/Generic/version.ll
llvm/test/DebugInfo/Mips/InlinedFnLocalVar.ll
llvm/test/DebugInfo/PowerPC/tls-fission.ll
llvm/test/DebugInfo/PowerPC/tls.ll
llvm/test/DebugInfo/Sparc/gnu-window-save.ll
llvm/test/DebugInfo/SystemZ/variable-loc.ll
llvm/test/DebugInfo/X86/2010-04-13-PubType.ll
llvm/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll
llvm/test/DebugInfo/X86/2011-12-16-BadStructRef.ll
llvm/test/DebugInfo/X86/DW_AT_byte_size.ll
llvm/test/DebugInfo/X86/DW_AT_object_pointer.ll
llvm/test/DebugInfo/X86/DW_AT_specification.ll
llvm/test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll
llvm/test/DebugInfo/X86/DW_TAG_friend.ll
llvm/test/DebugInfo/X86/InlinedFnLocalVar.ll
llvm/test/DebugInfo/X86/aligned_stack_var.ll
llvm/test/DebugInfo/X86/arange.ll
llvm/test/DebugInfo/X86/byvalstruct.ll
llvm/test/DebugInfo/X86/c-type-units.ll
llvm/test/DebugInfo/X86/coff_debug_info_type.ll
llvm/test/DebugInfo/X86/coff_relative_names.ll
llvm/test/DebugInfo/X86/concrete_out_of_line.ll
llvm/test/DebugInfo/X86/data_member_location.ll
llvm/test/DebugInfo/X86/dbg-byval-parameter.ll
llvm/test/DebugInfo/X86/dbg-const-int.ll
llvm/test/DebugInfo/X86/dbg-declare.ll
llvm/test/DebugInfo/X86/dbg-file-name.ll
llvm/test/DebugInfo/X86/dbg-i128-const.ll
llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll
llvm/test/DebugInfo/X86/dbg-prolog-end.ll
llvm/test/DebugInfo/X86/dbg-subrange.ll
llvm/test/DebugInfo/X86/dbg-value-location.ll
llvm/test/DebugInfo/X86/debug-info-block-captured-self.ll
llvm/test/DebugInfo/X86/debug-info-static-member.ll
llvm/test/DebugInfo/X86/debug_frame.ll
llvm/test/DebugInfo/X86/discriminator.ll
llvm/test/DebugInfo/X86/dwarf-aranges.ll
llvm/test/DebugInfo/X86/dwarf-public-names.ll
llvm/test/DebugInfo/X86/dwarf-pubnames-split.ll
llvm/test/DebugInfo/X86/earlydup-crash.ll
llvm/test/DebugInfo/X86/elf-names.ll
llvm/test/DebugInfo/X86/empty-and-one-elem-array.ll
llvm/test/DebugInfo/X86/empty-array.ll
llvm/test/DebugInfo/X86/empty.ll
llvm/test/DebugInfo/X86/ending-run.ll
llvm/test/DebugInfo/X86/enum-class.ll
llvm/test/DebugInfo/X86/enum-fwd-decl.ll
llvm/test/DebugInfo/X86/fission-cu.ll
llvm/test/DebugInfo/X86/fission-hash.ll
llvm/test/DebugInfo/X86/fission-ranges.ll
llvm/test/DebugInfo/X86/generate-odr-hash.ll
llvm/test/DebugInfo/X86/gnu-public-names-empty.ll
llvm/test/DebugInfo/X86/line-info.ll
llvm/test/DebugInfo/X86/linkage-name.ll
llvm/test/DebugInfo/X86/multiple-aranges.ll
llvm/test/DebugInfo/X86/multiple-at-const-val.ll
llvm/test/DebugInfo/X86/nondefault-subrange-array.ll
llvm/test/DebugInfo/X86/objc-fwd-decl.ll
llvm/test/DebugInfo/X86/objc-property-void.ll
llvm/test/DebugInfo/X86/pointer-type-size.ll
llvm/test/DebugInfo/X86/pr11300.ll
llvm/test/DebugInfo/X86/pr12831.ll
llvm/test/DebugInfo/X86/pr13303.ll
llvm/test/DebugInfo/X86/prologue-stack.ll
llvm/test/DebugInfo/X86/ref_addr_relocation.ll
llvm/test/DebugInfo/X86/reference-argument.ll
llvm/test/DebugInfo/X86/rvalue-ref.ll
llvm/test/DebugInfo/X86/stmt-list.ll
llvm/test/DebugInfo/X86/stringpool.ll
llvm/test/DebugInfo/X86/struct-loc.ll
llvm/test/DebugInfo/X86/subrange-type.ll
llvm/test/DebugInfo/X86/tls.ll
llvm/test/DebugInfo/X86/union-template.ll
llvm/test/DebugInfo/X86/vector.ll
llvm/test/Instrumentation/AddressSanitizer/debug_info.ll
llvm/test/Linker/2009-09-03-mdnode.ll
llvm/test/Linker/2009-09-03-mdnode2.ll
llvm/test/Linker/2011-08-04-DebugLoc.ll
llvm/test/Linker/2011-08-04-DebugLoc2.ll
llvm/test/Linker/2011-08-04-Metadata.ll
llvm/test/Linker/2011-08-04-Metadata2.ll
llvm/test/Linker/2011-08-18-unique-class-type.ll
llvm/test/Linker/2011-08-18-unique-class-type2.ll
llvm/test/Linker/2011-08-18-unique-debug-type.ll
llvm/test/Linker/2011-08-18-unique-debug-type2.ll
llvm/test/Linker/DbgDeclare.ll
llvm/test/Linker/DbgDeclare2.ll
llvm/test/Linker/Inputs/type-unique-inheritance-a.ll
llvm/test/Linker/Inputs/type-unique-inheritance-b.ll
llvm/test/Linker/Inputs/type-unique-simple2-a.ll
llvm/test/Linker/Inputs/type-unique-simple2-b.ll
llvm/test/Linker/debug-info-version-a.ll
llvm/test/Linker/type-unique-simple-a.ll
llvm/test/Linker/type-unique-simple-b.ll
llvm/test/Linker/type-unique-simple2-a.ll
llvm/test/Linker/type-unique-simple2-b.ll
llvm/test/Transforms/AddDiscriminators/basic.ll
llvm/test/Transforms/AddDiscriminators/first-only.ll
llvm/test/Transforms/AddDiscriminators/multiple.ll
llvm/test/Transforms/DeadArgElim/2010-04-30-DbgInfo.ll
llvm/test/Transforms/DeadStoreElimination/inst-limits.ll
llvm/test/Transforms/GCOVProfiling/linkagename.ll
llvm/test/Transforms/GCOVProfiling/version.ll
llvm/test/Transforms/GlobalOpt/2009-03-05-dbg.ll
llvm/test/Transforms/Inline/ignore-debug-info.ll
llvm/test/Transforms/InstCombine/debug-line.ll
llvm/test/Transforms/InstCombine/debuginfo.ll
llvm/test/Transforms/LICM/debug-value.ll
llvm/test/Transforms/LoopIdiom/debug-line.ll
llvm/test/Transforms/LoopRotate/dbgvalue.ll
llvm/test/Transforms/LoopVectorize/dbg.value.ll
llvm/test/Transforms/LoopVectorize/debugloc.ll
llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll
llvm/test/Transforms/Mem2Reg/ConvertDebugInfo2.ll
llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll
llvm/test/Transforms/SLPVectorizer/X86/debug_info.ll
llvm/test/Transforms/SampleProfile/calls.ll
llvm/test/Transforms/SampleProfile/discriminator.ll
llvm/test/Transforms/SampleProfile/inline.ll
llvm/test/Transforms/SampleProfile/propagate.ll
llvm/test/Transforms/ScalarRepl/debuginfo-preserved.ll
llvm/test/Transforms/Scalarizer/dbginfo.ll
llvm/test/Transforms/SimplifyCFG/branch-fold-dbg.ll
llvm/test/Transforms/SimplifyCFG/hoist-dbgvalue.ll
llvm/test/Transforms/SimplifyCFG/trap-debugloc.ll
llvm/test/Transforms/StripSymbols/2010-06-30-StripDebug.ll
llvm/test/Verifier/func-dbg.ll
llvm/unittests/IR/MetadataTest.cpp