diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 04:14:33 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 04:14:33 +0000 |
commit | 000fa2c6461a6df33391f84065286793ebf9eb75 (patch) | |
tree | 1f57f3d91f1a25b62a3b07b3c098cb82b5b56521 /llvm/unittests/Transforms | |
parent | 8d33fdc3bfb2efa1116caa693138e03718eec238 (diff) | |
download | bcm5719-llvm-000fa2c6461a6df33391f84065286793ebf9eb75.tar.gz bcm5719-llvm-000fa2c6461a6df33391f84065286793ebf9eb75.zip |
DebugInfo: Remove DITypedArray<>, replace with typedefs
Replace all uses of `DITypedArray<>` with `MDTupleTypedArrayWrapper<>`
and `MDTypeRefArray`. The APIs are completely different, but the
provided functionality is the same: treat an `MDTuple` as if it's an
array of a particular element type.
To simplify this patch a bit, I've temporarily typedef'ed
`DebugNodeArray` to `DIArray` and `MDTypeRefArray` to `DITypeArray`.
I've also temporarily conditionalized the accessors to check for null --
eventually these should be changed to asserts and the callers should
check for null themselves.
There's a tiny accompanying patch to clang.
llvm-svn: 234290
Diffstat (limited to 'llvm/unittests/Transforms')
-rw-r--r-- | llvm/unittests/Transforms/Utils/Cloning.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Transforms/Utils/Cloning.cpp b/llvm/unittests/Transforms/Utils/Cloning.cpp index 4b2beb745d0..49e798b6644 100644 --- a/llvm/unittests/Transforms/Utils/Cloning.cpp +++ b/llvm/unittests/Transforms/Utils/Cloning.cpp @@ -323,8 +323,8 @@ TEST_F(CloneFunc, SubprogramInRightCU) { DICompileUnit CU1 = cast<MDCompileUnit>(*Iter); Iter++; DICompileUnit CU2 = cast<MDCompileUnit>(*Iter); - EXPECT_TRUE(CU1.getSubprograms().getNumElements() == 0 - || CU2.getSubprograms().getNumElements() == 0); + EXPECT_TRUE(CU1.getSubprograms().size() == 0 || + CU2.getSubprograms().size() == 0); } // Test that instructions in the old function still belong to it in the |