summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTDumper.cpp
diff options
context:
space:
mode:
authorXiuli Pan <xiulipan@outlook.com>2016-05-03 05:37:07 +0000
committerXiuli Pan <xiulipan@outlook.com>2016-05-03 05:37:07 +0000
commit2d12e65b6b48c03b47c9cace73f5e6b840e84f30 (patch)
treeda5da3f13afdbaf597f065de26bdb23136ee9e33 /clang/lib/AST/ASTDumper.cpp
parent59e9748cb533daa29a24c360ea30a94425e2eb77 (diff)
downloadbcm5719-llvm-2d12e65b6b48c03b47c9cace73f5e6b840e84f30.tar.gz
bcm5719-llvm-2d12e65b6b48c03b47c9cace73f5e6b840e84f30.zip
[OpenCL] Fix pipe type dump.
Summary: Fix the dump of PipeType. Now we will have "pipe int" and element type. Reviewers: yaxunl, Anastasia Subscribers: cfe-commits, bader Differential Revision: http://reviews.llvm.org/D19524 llvm-svn: 268364
Diffstat (limited to 'clang/lib/AST/ASTDumper.cpp')
-rw-r--r--clang/lib/AST/ASTDumper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp
index 027889747e3..05d8da298cd 100644
--- a/clang/lib/AST/ASTDumper.cpp
+++ b/clang/lib/AST/ASTDumper.cpp
@@ -404,6 +404,9 @@ namespace {
void VisitAtomicType(const AtomicType *T) {
dumpTypeAsChild(T->getValueType());
}
+ void VisitPipeType(const PipeType *T) {
+ dumpTypeAsChild(T->getElementType());
+ }
void VisitAdjustedType(const AdjustedType *T) {
dumpTypeAsChild(T->getOriginalType());
}
OpenPOWER on IntegriCloud