summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Transforms
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2014-07-28 22:24:06 +0000
committerManman Ren <manman.ren@gmail.com>2014-07-28 22:24:06 +0000
commitf8a1967c8c37018a35a787b673f5dead1d524185 (patch)
tree9906cd6ae61da22a67a0e7f96447c375f1cc3aee /llvm/unittests/Transforms
parent831f05802e36c8002213a42e63b2a9a501a294d1 (diff)
downloadbcm5719-llvm-f8a1967c8c37018a35a787b673f5dead1d524185.tar.gz
bcm5719-llvm-f8a1967c8c37018a35a787b673f5dead1d524185.zip
[Debug Info] add DISubroutineType and its creation takes DITypeArray.
DITypeArray is an array of DITypeRef, at its creation, we will create DITypeRef (i.e use the identifier if the type node has an identifier). This is the last patch to unique the type array of a subroutine type. rdar://17628609 llvm-svn: 214132
Diffstat (limited to 'llvm/unittests/Transforms')
-rw-r--r--llvm/unittests/Transforms/Utils/Cloning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Transforms/Utils/Cloning.cpp b/llvm/unittests/Transforms/Utils/Cloning.cpp
index b3a1f5b1052..571008e07f7 100644
--- a/llvm/unittests/Transforms/Utils/Cloning.cpp
+++ b/llvm/unittests/Transforms/Utils/Cloning.cpp
@@ -232,7 +232,7 @@ protected:
// Function DI
DIFile File = DBuilder.createFile("filename.c", "/file/dir/");
- DIArray ParamTypes = DBuilder.getOrCreateArray(ArrayRef<Value*>());
+ DITypeArray ParamTypes = DBuilder.getOrCreateTypeArray(None);
DICompositeType FuncType = DBuilder.createSubroutineType(File, ParamTypes);
DICompileUnit CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99,
"filename.c", "/file/dir", "CloneFunc", false, "", 0);
OpenPOWER on IntegriCloud