aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-02 01:49:16 +0000
committerChris Lattner <sabre@nondot.org>2007-12-02 01:49:16 +0000
commitdc4d280136d3301fcbf3c7b4b2782c8bd804342c (patch)
treeb9735ff4a2d9934e19ff14ac0f91b50f0acdac2b /CodeGen/CGExprAgg.cpp
parentdc5e8268292046114ffe02e48773572a91a310f1 (diff)
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
Diffstat (limited to 'CodeGen/CGExprAgg.cpp')
-rw-r--r--CodeGen/CGExprAgg.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/CodeGen/CGExprAgg.cpp b/CodeGen/CGExprAgg.cpp
index 7646081d54..b0e360f28e 100644
--- a/CodeGen/CGExprAgg.cpp
+++ b/CodeGen/CGExprAgg.cpp
@@ -54,8 +54,7 @@ public:
//===--------------------------------------------------------------------===//
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::VisitStmtExpr(const StmtExpr *E) {
}
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 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
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;
}