aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-06 05:02:28 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-06 05:02:28 +0000
commit2471ae46df8f59a69cc152230f3f39d2e68525c5 (patch)
tree6d9c375c903316ae6cd9c43e559f37f6a7c60837 /include
parent576310512118071393e3f216e1fd4108b0823e56 (diff)
downloadexternal_llvm-2471ae46df8f59a69cc152230f3f39d2e68525c5.zip
external_llvm-2471ae46df8f59a69cc152230f3f39d2e68525c5.tar.gz
external_llvm-2471ae46df8f59a69cc152230f3f39d2e68525c5.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index ab2924e..7100a5f 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