Require the destination GlobalValue for LoadValueFromMemory to be passed
authorReid Spencer <rspencer@reidspencer.com>
Sat, 3 Mar 2007 08:35:14 +0000 (08:35 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 3 Mar 2007 08:35:14 +0000 (08:35 +0000)
in as a parameter instead of returned.

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

include/llvm/ExecutionEngine/ExecutionEngine.h

index c2f8fed70dfe5ed8608273fe0b6aa368e3665c5d..3ebc65c621be4f85d2f6ee7cec8f129f8eb31f13 100644 (file)
@@ -217,7 +217,8 @@ protected:
   void EmitGlobalVariable(const GlobalVariable *GV);
 
   GenericValue getConstantValue(const Constant *C);
-  GenericValue LoadValueFromMemory(GenericValue *Ptr, const Type *Ty);
+  void LoadValueFromMemory(GenericValue &Result, GenericValue *Ptr, 
+                           const Type *Ty);
 };
 
 } // End llvm namespace