diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-16 16:36:23 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-16 16:36:23 +0000 |
commit | 02083539a328f9457365c400a82b496ef6de66a8 (patch) | |
tree | 200e8cf841fdce7a3b1d5115373ec921d7f44a8e /llvm/unittests/Transforms/Utils/Cloning.cpp | |
parent | e851e0426298980173ae9d486d068beab5fa1274 (diff) | |
download | bcm5719-llvm-02083539a328f9457365c400a82b496ef6de66a8.tar.gz bcm5719-llvm-02083539a328f9457365c400a82b496ef6de66a8.zip |
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.
llvm-svn: 235111
Diffstat (limited to 'llvm/unittests/Transforms/Utils/Cloning.cpp')
-rw-r--r-- | llvm/unittests/Transforms/Utils/Cloning.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Transforms/Utils/Cloning.cpp b/llvm/unittests/Transforms/Utils/Cloning.cpp index ca68bb83d6d..636cb3caa50 100644 --- a/llvm/unittests/Transforms/Utils/Cloning.cpp +++ b/llvm/unittests/Transforms/Utils/Cloning.cpp @@ -230,7 +230,8 @@ protected: // Function DI DIFile File = DBuilder.createFile("filename.c", "/file/dir/"); DITypeArray ParamTypes = DBuilder.getOrCreateTypeArray(None); - DICompositeType FuncType = DBuilder.createSubroutineType(File, ParamTypes); + MDSubroutineType *FuncType = + DBuilder.createSubroutineType(File, ParamTypes); DICompileUnit CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99, "filename.c", "/file/dir", "CloneFunc", false, "", 0); |