llvm-6502/include/llvm/IR
Duncan P. N. Exon Smith e2305f7e90 DebugInfo: Require valid DIDescriptors
As part of PR22777, switch from `dyn_cast_or_null<>` to `cast<>` in most
`DIDescriptor` accessors.  These classes are lightweight wrappers around
pointers, so the users should check for valid pointers before using
them.

This survives a Darwin clang -g bootstrap (after fixing testcases), but
it's possible the bots will complain about other configurations.  I'll
fix any fallout as quickly as I can!  Once this bakes for a bit I'll
remove the macros.

Note that `DebugLoc` implicitly gets stricter with this change as well,
since it forward to `DILocation`.  Any code that's using `DebugLoc`
accessors should check `DebugLoc::isUnknown()` first.  (BTW, I'm also
partway through a cleanup of the `DebugLoc` API to make it more obvious
what it is (a glorified pointer wrapper) and remove cruft from before
the Metadata/Value split.  I'll commit soon.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232844 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-20 20:17:07 +00:00
..
Argument.h
AssemblyAnnotationWriter.h
Attributes.h
AutoUpgrade.h
BasicBlock.h
CallingConv.h
CallSite.h
CFG.h
CMakeLists.txt
Comdat.h
Constant.h
ConstantFolder.h
ConstantRange.h [ConstantRange] Split makeICmpRegion in two. 2015-03-18 00:41:24 +00:00
Constants.h
DataLayout.h COFF: Let globals with private linkage reside in their own section 2015-03-17 23:54:51 +00:00
DebugInfo.h DebugInfo: Require valid DIDescriptors 2015-03-20 20:17:07 +00:00
DebugInfoFlags.def
DebugInfoMetadata.h DebugInfo: Drop fake DW_TAG_expression 2015-03-17 21:32:46 +00:00
DebugLoc.h
DerivedTypes.h
DiagnosticInfo.h
DiagnosticPrinter.h
DIBuilder.h
Dominators.h
Function.h
GetElementPtrTypeIterator.h
GlobalAlias.h
GlobalObject.h
GlobalValue.h
GlobalVariable.h
GVMaterializer.h Be lazy about loading metadata in IRObjectFile. 2015-03-13 21:54:20 +00:00
InlineAsm.h [systemz] Distinguish the 'Q', 'R', 'S', and 'T' inline assembly memory constraints. 2015-03-17 16:16:14 +00:00
InstIterator.h Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
InstrTypes.h
Instruction.def
Instruction.h
Instructions.h [opaque pointer type] gep API migration 2015-03-14 21:40:10 +00:00
InstVisitor.h
IntrinsicInst.h DbgIntrinsicInst: Downcast to specialized MDNodes in accessors 2015-03-15 01:23:20 +00:00
Intrinsics.h
Intrinsics.td Make llvm.eh.actions an intrinsic and add docs for it 2015-03-12 01:45:37 +00:00
IntrinsicsAArch64.td
IntrinsicsARM.td
IntrinsicsBPF.td
IntrinsicsHexagon.td [Hexagon] Intrinsics for circular and bit-reversed loads and stores 2015-03-18 16:23:44 +00:00
IntrinsicsMips.td
IntrinsicsNVVM.td
IntrinsicsPowerPC.td Change the generation of the vmuluwm instruction to be based on the MUL opcode. 2015-03-10 19:49:38 +00:00
IntrinsicsR600.td
IntrinsicsX86.td [X86, AVX2] Replace inserti128 and extracti128 intrinsics with generic shuffles 2015-03-12 23:16:18 +00:00
IntrinsicsXCore.td
IRBuilder.h [opaque pointer type] IRBuilder gep migration progress 2015-03-15 01:03:19 +00:00
IRPrintingPasses.h
LegacyPassManager.h
LegacyPassManagers.h
LegacyPassNameParser.h
LLVMContext.h
Mangler.h Revert "Address review comments" 2015-03-17 20:40:21 +00:00
MDBuilder.h
Metadata.def DebugInfo: Drop fake DW_TAG_expression 2015-03-17 21:32:46 +00:00
Metadata.h IR: Default the Metadata::dump() argument "harder" after r232275 2015-03-15 06:53:32 +00:00
MetadataTracking.h
Module.h Be lazy about loading metadata in IRObjectFile. 2015-03-13 21:54:20 +00:00
NoFolder.h [opaque pointer type] more gep API migrations 2015-03-14 19:24:04 +00:00
OperandTraits.h
Operator.h [opaque pointer type] Bitcode support for explicit type parameter on the gep operator 2015-03-13 21:03:36 +00:00
PassManager.h
PassManagerInternal.h
PatternMatch.h
PredIteratorCache.h
Statepoint.h
SymbolTableListTraits.h
TrackingMDRef.h
Type.h
TypeBuilder.h
TypeFinder.h
Use.h
UseListOrder.h
User.h
Value.h
ValueHandle.h
ValueMap.h
ValueSymbolTable.h
Verifier.h Verifier: Remove the separate -verify-di pass 2015-03-19 22:24:17 +00:00