From b84e8a670ad1d00c0a34295c42ac700cdde04815 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 4 May 2009 06:56:16 +0000 Subject: [PATCH] Remove unnecessary copy of constraint info. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70835 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGStmt.cpp | 2 +- lib/CodeGen/CodeGenFunction.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index eb7697d3b1..441047e1bc 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -726,7 +726,7 @@ SimplifyConstraint(const char *Constraint, TargetInfo &Target, } llvm::Value* CodeGenFunction::EmitAsmInput(const AsmStmt &S, - TargetInfo::ConstraintInfo Info, + const TargetInfo::ConstraintInfo &Info, const Expr *InputExpr, std::string &ConstraintStr) { llvm::Value *Arg; diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 04c0026d8e..0729ae2d69 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -801,7 +801,8 @@ private: void ExpandTypeToArgs(QualType Ty, RValue Src, llvm::SmallVector &Args); - llvm::Value* EmitAsmInput(const AsmStmt &S, TargetInfo::ConstraintInfo Info, + llvm::Value* EmitAsmInput(const AsmStmt &S, + const TargetInfo::ConstraintInfo &Info, const Expr *InputExpr, std::string &ConstraintStr); /// EmitCleanupBlock - emits a single cleanup block. -- 2.40.0