diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-05-04 06:56:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-05-04 06:56:16 +0000 |
commit | b84e8a670ad1d00c0a34295c42ac700cdde04815 (patch) | |
tree | 7add3a19b88f058406bbb91e032811f1f9ce332d /lib/CodeGen | |
parent | 9aa829bddbe6dc2e41aff5b26483dd3370381293 (diff) |
Remove unnecessary copy of constraint info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 2 | ||||
-rw-r--r-- | 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<llvm::Value*, 16> &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. |