DebugInfo: Remove DIDescriptor from the DIBuilder API
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 16 Apr 2015 16:36:23 +0000 (16:36 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 16 Apr 2015 16:36:23 +0000 (16:36 +0000)
commitafc67405f8d3a755650a1cb4bb62ea76e21ed5fb
tree682d68cebeb0c5d6910872849ad70d67348f92c7
parente2711530de0c6c0227abb08a7f90630c3ea4d304
DebugInfo: Remove DIDescriptor from the DIBuilder API

As a step toward killing `DIDescriptor` and its subclasses, remove it
from the `DIBuilder` API.  Replace the subclasses with appropriate
pointers from the new debug info hierarchy.  There are a couple of
possible surprises in type choices for out-of-tree frontends:

  - Subroutine types: `MDSubroutineType`, not `MDCompositeTypeBase`.
  - Composite types: `MDCompositeType`, not `MDCompositeTypeBase`.
  - Scopes: `MDScope`, not `MDNode`.
  - Generic debug info nodes: `DebugNode`, not `MDNode`.

This is part of PR23080.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235111 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/go/llvm/DIBuilderBindings.cpp
examples/Kaleidoscope/Chapter8/toy.cpp
include/llvm/IR/DIBuilder.h
lib/IR/DIBuilder.cpp
unittests/Transforms/Utils/Cloning.cpp