mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 21:05:51 +00:00
cb334476f1
Change `DIBuilder::insertDeclare()` and `insertDbgValueIntrinsic()` to take an `MDLocation*`/`DebugLoc` parameter which it attaches to the created intrinsic. Assert at creation time that the `scope:` field's subprogram matches the variable's. There's a matching `clang` commit to use the API. The context for this is PR22778, which is removing the `inlinedAt:` field from `MDLocalVariable`, instead deferring to the `!dbg` location attached to the debug info intrinsic. The best way to ensure we always have a `!dbg` attachment is to require one at creation time. I'll be adding verifier checks next, but this API change is the best way to shake out frontend bugs. Note: I added an `llvm_unreachable()` in `bindings/go` and passed in `nullptr` for the `DebugLoc`. The `llgo` folks will eventually need to pass a valid `DebugLoc` here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235041 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
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 | ||
Constants.h | ||
DataLayout.h | ||
DebugInfo.h | ||
DebugInfoFlags.def | ||
DebugInfoMetadata.h | ||
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 | ||
InlineAsm.h | ||
InstIterator.h | ||
InstrTypes.h | ||
Instruction.def | ||
Instruction.h | ||
Instructions.h | ||
InstVisitor.h | ||
IntrinsicInst.h | ||
Intrinsics.h | ||
Intrinsics.td | ||
IntrinsicsAArch64.td | ||
IntrinsicsARM.td | ||
IntrinsicsBPF.td | ||
IntrinsicsHexagon.td | ||
IntrinsicsMips.td | ||
IntrinsicsNVVM.td | ||
IntrinsicsPowerPC.td | ||
IntrinsicsR600.td | ||
IntrinsicsSystemZ.td | ||
IntrinsicsX86.td | ||
IntrinsicsXCore.td | ||
IRBuilder.h | ||
IRPrintingPasses.h | ||
LegacyPassManager.h | ||
LegacyPassManagers.h | ||
LegacyPassNameParser.h | ||
LLVMContext.h | ||
Mangler.h | ||
MDBuilder.h | ||
Metadata.def | ||
Metadata.h | ||
MetadataTracking.h | ||
Module.h | ||
NoFolder.h | ||
OperandTraits.h | ||
Operator.h | ||
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 |