diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-09-13 01:17:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-09-13 01:17:29 +0000 |
| commit | 69de3f4af671bed692f25296ed02c58d399250e8 (patch) | |
| tree | b455563383558904cab7ca84072b90b83c739978 /clang/CodeGen/CGExprAgg.cpp | |
| parent | 5a5b35c07befab1977812d2669b8e71e6f754d31 (diff) | |
| download | bcm5719-llvm-69de3f4af671bed692f25296ed02c58d399250e8.tar.gz bcm5719-llvm-69de3f4af671bed692f25296ed02c58d399250e8.zip | |
When dumping out errors about unsupported stuff, emit loc info.
llvm-svn: 41907
Diffstat (limited to 'clang/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | clang/CodeGen/CGExprAgg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/CodeGen/CGExprAgg.cpp b/clang/CodeGen/CGExprAgg.cpp index 7ade1330511..de9e2b5f6f1 100644 --- a/clang/CodeGen/CGExprAgg.cpp +++ b/clang/CodeGen/CGExprAgg.cpp @@ -54,7 +54,7 @@ public: void VisitStmt(Stmt *S) { fprintf(stderr, "Unimplemented agg expr!\n"); - S->dump(); + S->dump(CGF.getContext().SourceMgr); } void VisitParenExpr(ParenExpr *PE) { Visit(PE->getSubExpr()); } @@ -135,7 +135,7 @@ void AggExprEmitter::VisitStmtExpr(const StmtExpr *E) { void AggExprEmitter::VisitBinaryOperator(const BinaryOperator *E) { fprintf(stderr, "Unimplemented aggregate binary expr!\n"); - E->dump(); + E->dump(CGF.getContext().SourceMgr); } void AggExprEmitter::VisitBinAssign(const BinaryOperator *E) { |

