aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-21 16:57:55 +0000
committerChris Lattner <sabre@nondot.org>2007-08-21 16:57:55 +0000
commit58dee10ed2eee34035f62d1c2d32b3639e9182f8 (patch)
tree4bdd6185d3c1437d13a0d454f20f256bc07fb820 /CodeGen/CodeGenFunction.h
parentc6fb90a7246c2d5d3233e70107bf9d8c7c9e535b (diff)
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
Diffstat (limited to 'CodeGen/CodeGenFunction.h')
-rw-r--r--CodeGen/CodeGenFunction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h
index 47bdbacbb8..5ece5cd41b 100644
--- a/CodeGen/CodeGenFunction.h
+++ b/CodeGen/CodeGenFunction.h
@@ -182,6 +182,7 @@ class CodeGenFunction {
CodeGenModule &CGM; // Per-module state.
TargetInfo &Target;
public:
+ typedef std::pair<llvm::Value *, llvm::Value *> ComplexPairTy;
llvm::LLVMBuilder Builder;
private:
@@ -416,7 +417,7 @@ public:
/// 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