[cfe-commits] r41907 - in /cfe/trunk/CodeGen: CGBuiltin.cpp CGExpr.cpp CGExprAgg.cpp CGExprComplex.cpp CGExprScalar.cpp CGStmt.cpp
Chris Lattner
sabre at nondot.org
Wed Sep 12 18:17:29 PDT 2007
Author: lattner
Date: Wed Sep 12 20:17:29 2007
New Revision: 41907
URL: http://llvm.org/viewvc/llvm-project?rev=41907&view=rev
Log:
When dumping out errors about unsupported stuff, emit loc info.
Modified:
cfe/trunk/CodeGen/CGBuiltin.cpp
cfe/trunk/CodeGen/CGExpr.cpp
cfe/trunk/CodeGen/CGExprAgg.cpp
cfe/trunk/CodeGen/CGExprComplex.cpp
cfe/trunk/CodeGen/CGExprScalar.cpp
cfe/trunk/CodeGen/CGStmt.cpp
Modified: cfe/trunk/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGBuiltin.cpp?rev=41907&r1=41906&r2=41907&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/CodeGen/CGBuiltin.cpp Wed Sep 12 20:17:29 2007
@@ -28,7 +28,7 @@
return EmitCallExpr(CGM.getBuiltinLibFunction(BuiltinID), E);
fprintf(stderr, "Unimplemented builtin!!\n");
- E->dump();
+ E->dump(getContext().SourceMgr);
// Unknown builtin, for now just dump it out and return undef.
if (hasAggregateLLVMType(E->getType()))
Modified: cfe/trunk/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExpr.cpp?rev=41907&r1=41906&r2=41907&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/CodeGen/CGExpr.cpp Wed Sep 12 20:17:29 2007
@@ -84,7 +84,7 @@
switch (E->getStmtClass()) {
default: {
fprintf(stderr, "Unimplemented lvalue expr!\n");
- E->dump();
+ E->dump(getContext().SourceMgr);
llvm::Type *Ty = llvm::PointerType::get(ConvertType(E->getType()));
return LValue::MakeAddr(llvm::UndefValue::get(Ty));
}
Modified: cfe/trunk/CodeGen/CGExprAgg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExprAgg.cpp?rev=41907&r1=41906&r2=41907&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/CodeGen/CGExprAgg.cpp Wed Sep 12 20:17:29 2007
@@ -54,7 +54,7 @@
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::VisitBinaryOperator(const BinaryOperator *E) {
fprintf(stderr, "Unimplemented aggregate binary expr!\n");
- E->dump();
+ E->dump(CGF.getContext().SourceMgr);
}
void AggExprEmitter::VisitBinAssign(const BinaryOperator *E) {
Modified: cfe/trunk/CodeGen/CGExprComplex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExprComplex.cpp?rev=41907&r1=41906&r2=41907&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExprComplex.cpp (original)
+++ cfe/trunk/CodeGen/CGExprComplex.cpp Wed Sep 12 20:17:29 2007
@@ -67,7 +67,7 @@
//===--------------------------------------------------------------------===//
ComplexPairTy VisitStmt(Stmt *S) {
- S->dump();
+ S->dump(CGF.getContext().SourceMgr);
assert(0 && "Stmt can't have complex result type!");
return ComplexPairTy();
}
@@ -233,7 +233,7 @@
ComplexPairTy ComplexExprEmitter::VisitExpr(Expr *E) {
fprintf(stderr, "Unimplemented complex expr!\n");
- E->dump();
+ E->dump(CGF.getContext().SourceMgr);
const llvm::Type *EltTy =
CGF.ConvertType(E->getType()->getAsComplexType()->getElementType());
llvm::Value *U = llvm::UndefValue::get(EltTy);
Modified: cfe/trunk/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExprScalar.cpp?rev=41907&r1=41906&r2=41907&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/CodeGen/CGExprScalar.cpp Wed Sep 12 20:17:29 2007
@@ -81,7 +81,7 @@
//===--------------------------------------------------------------------===//
Value *VisitStmt(Stmt *S) {
- S->dump();
+ S->dump(CGF.getContext().SourceMgr);
assert(0 && "Stmt can't have complex result type!");
return 0;
}
@@ -374,7 +374,7 @@
Value *ScalarExprEmitter::VisitExpr(Expr *E) {
fprintf(stderr, "Unimplemented scalar expr!\n");
- E->dump();
+ E->dump(CGF.getContext().SourceMgr);
if (E->getType()->isVoidType())
return 0;
return llvm::UndefValue::get(CGF.ConvertType(E->getType()));
Modified: cfe/trunk/CodeGen/CGStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGStmt.cpp?rev=41907&r1=41906&r2=41907&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/CodeGen/CGStmt.cpp Wed Sep 12 20:17:29 2007
@@ -39,7 +39,7 @@
EmitAggExpr(E, 0, false);
} else {
printf("Unimplemented stmt!\n");
- S->dump();
+ S->dump(getContext().SourceMgr);
}
break;
case Stmt::NullStmtClass: break;
More information about the cfe-commits
mailing list