update some comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41218 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGAggExpr.cpp b/CodeGen/CGAggExpr.cpp
index 84a69b1..93f78a4 100644
--- a/CodeGen/CGAggExpr.cpp
+++ b/CodeGen/CGAggExpr.cpp
@@ -34,8 +34,6 @@
: CGF(cgf), DestPtr(destPtr), VolatileDest(volatileDest) {
}
- typedef std::pair<llvm::Value *, llvm::Value *> ComplexPairTy;
-
//===--------------------------------------------------------------------===//
// Utilities
//===--------------------------------------------------------------------===//
@@ -163,6 +161,7 @@
void CodeGenFunction::EmitAggregateCopy(llvm::Value *DestPtr,
llvm::Value *SrcPtr, QualType Ty) {
// Don't use memcpy for complex numbers.
+ // FIXME: split complex number handling out of here.
if (Ty->isComplexType()) {
llvm::Value *Real, *Imag;
EmitLoadOfComplex(SrcPtr, Real, Imag);
diff --git a/CodeGen/CGComplexExpr.cpp b/CodeGen/CGComplexExpr.cpp
index 719e22a..a6e6c06 100644
--- a/CodeGen/CGComplexExpr.cpp
+++ b/CodeGen/CGComplexExpr.cpp
@@ -21,7 +21,7 @@
using namespace CodeGen;
//===----------------------------------------------------------------------===//
-// Aggregate Expression Emitter
+// Complex Expression Emitter
//===----------------------------------------------------------------------===//
typedef std::pair<llvm::Value *, llvm::Value *> ComplexPairTy;
@@ -99,7 +99,7 @@
//===----------------------------------------------------------------------===//
ComplexPairTy ComplexExprEmitter::VisitBinaryOperator(const BinaryOperator *E) {
- fprintf(stderr, "Unimplemented aggregate binary expr!\n");
+ fprintf(stderr, "Unimplemented complex binary expr!\n");
E->dump();
return ComplexPairTy();
#if 0
@@ -269,7 +269,7 @@
CGF.EmitBlock(LHSBlock);
// Handle the GNU extension for missing LHS.
- assert(E->getLHS() && "Must have LHS for aggregate value");
+ assert(E->getLHS() && "Must have LHS for complex value");
ComplexPairTy LHS = Visit(E->getLHS());
CGF.Builder.CreateBr(ContBlock);