]> granicus.if.org Git - clang/commitdiff
Remove unnecessary copy of constraint info.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 4 May 2009 06:56:16 +0000 (06:56 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 4 May 2009 06:56:16 +0000 (06:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70835 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmt.cpp
lib/CodeGen/CodeGenFunction.h

index eb7697d3b1b1cd2262aa796283a2f3915970e64a..441047e1bc50455946182d4851de7f612bdfe704 100644 (file)
@@ -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;
index 04c0026d8e6ff37598d9b92c78a63d2b49ccc1fb..0729ae2d69503fe13e1c0f59192000a2d3c80c77 100644 (file)
@@ -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.