diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-22 22:12:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-22 22:12:56 +0000 |
commit | d79a726dc3c8af61b486948c97a183c7fe5b0179 (patch) | |
tree | 5c0dea40dbd8119f14253a60bae596db45a34988 /lib/CodeGen/CGStmt.cpp | |
parent | 3eabf1c0e695fd772ffee4ba469bc46292404ea1 (diff) |
Change uses of llvm::Type::isFirstClassType to use the new
llvm::Type::isSingleValueType. Currently these two functions have
the same behavior, but soon isFirstClassType will return true for
struct and array types.
Clang may some day want to use of isFirstClassType for some of
these some day as an optimization, but it'll require some
consideration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 0148ab0d84..c38ad04001 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -688,7 +688,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { // If the first output operand is not a memory dest, we'll // make it the return value. if (i == 0 && !(Info & TargetInfo::CI_AllowsMemory) && - DestValueType->isFirstClassType()) { + DestValueType->isSingleValueType()) { ResultAddr = Dest.getAddress(); ResultType = DestValueType; Constraints += "=" + OutputConstraint; @@ -709,10 +709,10 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { llvm::Value *Arg; if ((Info & TargetInfo::CI_AllowsRegister) || !(Info & TargetInfo::CI_AllowsMemory)) { - if (ConvertType(InputExpr->getType())->isFirstClassType()) { + if (ConvertType(InputExpr->getType())->isSingleValueType()) { Arg = EmitScalarExpr(InputExpr); } else { - assert(0 && "FIXME: Implement passing non first class types as inputs"); + assert(0 && "FIXME: Implement passing multiple-value types as inputs"); } } else { LValue Dest = EmitLValue(InputExpr); @@ -750,10 +750,10 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { if ((Info & TargetInfo::CI_AllowsRegister) || !(Info & TargetInfo::CI_AllowsMemory)) { - if (ConvertType(InputExpr->getType())->isFirstClassType()) { + if (ConvertType(InputExpr->getType())->isSingleValueType()) { Arg = EmitScalarExpr(InputExpr); } else { - assert(0 && "FIXME: Implement passing non first class types as inputs"); + assert(0 && "FIXME: Implement passing multiple-value types as inputs"); } } else { LValue Dest = EmitLValue(InputExpr); |