From: Reid Spencer Date: Tue, 6 Mar 2007 05:02:28 +0000 (+0000) Subject: Make StoreValueToMemory a little more efficient by not copying a X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2471ae46df8f59a69cc152230f3f39d2e68525c5;p=oota-llvm.git Make StoreValueToMemory a little more efficient by not copying a GenericValue to a temporary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34957 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index ab2924ef294..7100a5ff043 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -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