summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/DebugIR.cpp
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/lib/Transforms/Instrumentation/DebugIR.cpp
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/lib/Transforms/Instrumentation/DebugIR.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/DebugIR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp
index 2c78c9e0bba..f416339c6ad 100644
--- a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp
+++ b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp
@@ -440,7 +440,7 @@ private:
Params.push_back(getOrCreateType(T));
}
- DIArray ParamArray = Builder.getOrCreateArray(Params);
+ DITypeArray ParamArray = Builder.getOrCreateTypeArray(Params);
return Builder.createSubroutineType(DIFile(FileNode), ParamArray);
}
OpenPOWER on IntegriCloud