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 | 419ea7ec6a528cea0b0d7fc4a7150f01fca9a93d (patch) | |
tree | 4bfb33530f0aa851dbcf193f84340375beef760e /CodeGen/CGExprAgg.cpp | |
parent | b800dc2d5e27ec60f567567b623cdc61152b8fb8 (diff) |
When dumping out errors about unsupported stuff, emit loc info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CGExprAgg.cpp')
-rw-r--r-- | CodeGen/CGExprAgg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CodeGen/CGExprAgg.cpp b/CodeGen/CGExprAgg.cpp index 7ade133051..de9e2b5f6f 100644 --- a/CodeGen/CGExprAgg.cpp +++ b/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) { |