DI: Rewrite the DIBuilder local variable API
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 31 Jul 2015 17:55:53 +0000 (17:55 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 31 Jul 2015 17:55:53 +0000 (17:55 +0000)
commitaa50fa7c2f6a22d97a11336d7281377dcfcafc9d
tree7b2f76cc14efd083833a4fac0f769b4edca267f1
parent3f2cb5c959754a99ebe7fe9611e8788afd2da8e8
DI: Rewrite the DIBuilder local variable API

Replace the general `createLocalVariable()` with two more specific
functions: `createParameterVariable()` and `createAutoVariable()`, and
rewrite the documentation.

Besides cleaning up the API, this avoids exposing the fake DWARF tags
`DW_TAG_arg_variable` and `DW_TAG_auto_variable` to frontends, and is
preparation for removing them completely.

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