[cfe-commits] r70835 - in /cfe/trunk/lib/CodeGen: CGStmt.cpp CodeGenFunction.h

Daniel Dunbar daniel at zuster.org
Sun May 3 23:56:17 PDT 2009


Author: ddunbar
Date: Mon May  4 01:56:16 2009
New Revision: 70835

URL: http://llvm.org/viewvc/llvm-project?rev=70835&view=rev
Log:
Remove unnecessary copy of constraint info.

Modified:
    cfe/trunk/lib/CodeGen/CGStmt.cpp
    cfe/trunk/lib/CodeGen/CodeGenFunction.h

Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmt.cpp?rev=70835&r1=70834&r2=70835&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Mon May  4 01:56:16 2009
@@ -726,7 +726,7 @@
 }
 
 llvm::Value* CodeGenFunction::EmitAsmInput(const AsmStmt &S,
-                                           TargetInfo::ConstraintInfo Info, 
+                                         const TargetInfo::ConstraintInfo &Info,
                                            const Expr *InputExpr,
                                            std::string &ConstraintStr) {
   llvm::Value *Arg;

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.h?rev=70835&r1=70834&r2=70835&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.h Mon May  4 01:56:16 2009
@@ -801,7 +801,8 @@
   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.





More information about the cfe-commits mailing list