convert the rest of the stderr users in codegen to use diagnostics.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44503 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGExprAgg.cpp b/CodeGen/CGExprAgg.cpp
index 7646081..b0e360f 100644
--- a/CodeGen/CGExprAgg.cpp
+++ b/CodeGen/CGExprAgg.cpp
@@ -54,8 +54,7 @@
   //===--------------------------------------------------------------------===//
   
   void VisitStmt(Stmt *S) {
-    fprintf(stderr, "Unimplemented agg expr!\n");
-    S->dump(CGF.getContext().SourceMgr);
+    CGF.WarnUnsupported(S, "aggregate expression");
   }
   void VisitParenExpr(ParenExpr *PE) { Visit(PE->getSubExpr()); }
 
@@ -152,8 +151,7 @@
 }
 
 void AggExprEmitter::VisitBinaryOperator(const BinaryOperator *E) {
-  fprintf(stderr, "Unimplemented aggregate binary expr!\n");
-  E->dump(CGF.getContext().SourceMgr);
+  CGF.WarnUnsupported(E, "aggregate binary expression");
 }
 
 void AggExprEmitter::VisitBinAssign(const BinaryOperator *E) {
@@ -201,9 +199,7 @@
   unsigned NumInitElements = E->getNumInits();
 
   if (!E->getType()->isArrayType()) {
-    fprintf(stderr, "Unimplemented  aggregate expr! ");
-    fprintf(stderr, "Only Array initializers are implemneted\n");
-    E->dump(CGF.getContext().SourceMgr);
+    CGF.WarnUnsupported(E, "aggregate init-list expression");
     return;
   }