Make StoreValueToMemory a little more efficient by not copying a
authorReid Spencer <rspencer@reidspencer.com>
Tue, 6 Mar 2007 05:02:28 +0000 (05:02 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 6 Mar 2007 05:02:28 +0000 (05:02 +0000)
GenericValue to a temporary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34957 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h

index ab2924ef294b358c1b408a3e0cfb73fd55aa519e..7100a5ff043d29cc0363f4c39275eafc6ba7a2d6 100644 (file)
@@ -176,7 +176,7 @@ public:
   const GlobalValue *getGlobalValueAtAddress(void *Addr);
 
 
-  void StoreValueToMemory(GenericValue Val, GenericValue *Ptr, const Type *Ty);
+  void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr, const Type *Ty);
   void InitializeMemory(const Constant *Init, void *Addr);
 
   /// recompileAndRelinkFunction - This method is used to force a function