[cfe-commits] r39488 - in /cfe/cfe/trunk/AST: ASTContext.cpp StmtPrinter.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:44:55 PDT 2007
Author: clattner
Date: Wed Jul 11 11:44:54 2007
New Revision: 39488
URL: http://llvm.org/viewvc/llvm-project?rev=39488&view=rev
Log:
Implement a fixme
Modified:
cfe/cfe/trunk/AST/ASTContext.cpp
cfe/cfe/trunk/AST/StmtPrinter.cpp
Modified: cfe/cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/ASTContext.cpp?rev=39488&r1=39487&r2=39488&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/cfe/trunk/AST/ASTContext.cpp Wed Jul 11 11:44:54 2007
@@ -266,7 +266,6 @@
(NumArgs-1)*sizeof(QualType));
new (FTP) FunctionTypeProto(ResultTy, ArgArray, NumArgs, isVariadic,
Canonical);
-
Types.push_back(FTP);
FunctionTypeProtos.InsertNode(FTP, InsertPos);
return QualType(FTP, 0);
Modified: cfe/cfe/trunk/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/StmtPrinter.cpp?rev=39488&r1=39487&r2=39488&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/StmtPrinter.cpp (original)
+++ cfe/cfe/trunk/AST/StmtPrinter.cpp Wed Jul 11 11:44:54 2007
@@ -327,9 +327,9 @@
PrintExpr(Node->getBase());
OS << (Node->isArrow() ? "->" : ".");
- if (Node->getMemberDecl())
- assert(0 && "TODO: should print member decl!");
- OS << "member";
+ FieldDecl *Field = Node->getMemberDecl();
+ assert(Field && "MemberExpr should alway reference a field!");
+ OS << Field->getName();
}
void StmtPrinter::VisitCastExpr(CastExpr *Node) {
OS << "(" << Node->getDestType().getAsString() << ")";
More information about the cfe-commits
mailing list