summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-29 04:51:27 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-29 04:51:27 +0000
commit3be4b122d38ebe00bfa585b3f5c99d146398398f (patch)
tree38bc001bafbaf8f777f658cb7f8868b1dd59d461 /clang/lib/AST/StmtPrinter.cpp
parent51ba8d063030e08dc8d9344f6c1cb0c1348dd1a4 (diff)
downloadbcm5719-llvm-3be4b122d38ebe00bfa585b3f5c99d146398398f.tar.gz
bcm5719-llvm-3be4b122d38ebe00bfa585b3f5c99d146398398f.zip
Implement the GNU __null extension
llvm-svn: 60235
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index fcebdab05c6..b6f07070538 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -783,6 +783,10 @@ void StmtPrinter::VisitChooseExpr(ChooseExpr *Node) {
OS << ")";
}
+void StmtPrinter::VisitGNUNullExpr(GNUNullExpr *) {
+ OS << "__null";
+}
+
void StmtPrinter::VisitOverloadExpr(OverloadExpr *Node) {
OS << "__builtin_overload(";
for (unsigned i = 0, e = Node->getNumSubExprs(); i != e; ++i) {
OpenPOWER on IntegriCloud