reimplement support for complex comparisons, add support for integer complex compares.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41231 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h
index 47bdbac..5ece5cd 100644
--- a/CodeGen/CodeGenFunction.h
+++ b/CodeGen/CodeGenFunction.h
@@ -182,6 +182,7 @@
CodeGenModule &CGM; // Per-module state.
TargetInfo &Target;
public:
+ typedef std::pair<llvm::Value *, llvm::Value *> ComplexPairTy;
llvm::LLVMBuilder Builder;
private:
@@ -416,7 +417,7 @@
/// EmitComplexExpr - Emit the computation of the specified expression of
/// complex type, ignoring the result.
- void EmitComplexExpr(const Expr *E);
+ ComplexPairTy EmitComplexExpr(const Expr *E);
};
} // end namespace CodeGen
} // end namespace clang