mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
c4eafd24f2
Check accessors of `MDLocation`, and change them to `cast<>` down to the right types. Also add type-safe factory functions. All the callers that handle broken code need to use the new versions of the accessors (`getRawScope()` instead of `getScope()`) that still return `Metadata*`. This is also necessary for things like `MDNodeKeyImpl<MDLocation>` (in LLVMContextImpl.h) that need to unique the nodes when their operands might still be forward references of the wrong type. In the `Value` hierarchy, consumers that handle broken code use `getOperand()` directly. However, debug info nodes have a ton of operands, and their order (even their existence) isn't stable yet. It's safer and more maintainable to add an explicit "raw" accessor on the class itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233322 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
apple-version | ||
2003-01-30-LinkerRename.ll | ||
2003-05-31-LinkerRename.ll | ||
alias.ll | ||
alignment.ll | ||
basiclink.a.ll | ||
basiclink.b.ll | ||
comdat2.ll | ||
comdat3.ll | ||
comdat4.ll | ||
comdat5.ll | ||
comdat8.ll | ||
comdat.ll | ||
ConstantGlobals.ll | ||
constructor-comdat.ll | ||
ctors.ll | ||
datalayout-a.ll | ||
datalayout-b.ll | ||
distinct.ll | ||
ident.a.ll | ||
ident.b.ll | ||
linkage2.ll | ||
linkage.a.ll | ||
linkage.b.ll | ||
mdlocation.ll | ||
module-flags-dont-change-others.ll | ||
module-flags-pic-1-b.ll | ||
module-flags-pic-2-b.ll | ||
old_global_ctors.3.4.bc | ||
opaque.ll | ||
pr21374.ll | ||
pr22807-1.ll | ||
pr22807-2.ll | ||
PR8300.a.ll | ||
PR8300.b.ll | ||
PR11464.a.ll | ||
PR11464.b.ll | ||
redefinition.ll | ||
replaced-function-matches-first-subprogram.ll | ||
subprogram-linkonce-weak-odr.ll | ||
subprogram-linkonce-weak.ll | ||
targettriple-a.ll | ||
targettriple-b.ll | ||
targettriple-c.ll | ||
testlink.ll | ||
type-unique-alias.ll | ||
type-unique-dst-types2.ll | ||
type-unique-dst-types3.ll | ||
type-unique-inheritance-a.ll | ||
type-unique-inheritance-b.ll | ||
type-unique-name.ll | ||
type-unique-opaque.ll | ||
type-unique-simple2-a.ll | ||
type-unique-simple2-b.ll | ||
type-unique-unrelated2.ll | ||
type-unique-unrelated3.ll | ||
unique-fwd-decl-b.ll | ||
unique-fwd-decl-order.ll | ||
visibility.ll |