Deconstify parameter to getPointerToFunction().
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 13 Aug 2003 18:17:54 +0000 (18:17 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 13 Aug 2003 18:17:54 +0000 (18:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7822 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h
lib/ExecutionEngine/Interpreter/Interpreter.h

index 86e36854db904df6fc3fdfc6d07236bcd8790a24..852e48eb88a35faee28bdd28698ddd87f4d58f43 100644 (file)
@@ -79,7 +79,7 @@ public:
   // different ways.  They should each implement this to say what a function
   // pointer should look like.
   //
-  virtual void *getPointerToFunction(const Function *F) = 0;
+  virtual void *getPointerToFunction(Function *F) = 0;
 
 protected:
   void emitGlobals();
index 50765810abf4fedffc0e4d1a141bca569c23de92..51675b5d67191a99aaa8cc728c7f92a0dde730cb 100644 (file)
@@ -182,7 +182,7 @@ private:  // Helper functions
   // 
   void SwitchToNewBasicBlock(BasicBlock *Dest, ExecutionContext &SF);
 
-  void *getPointerToFunction(const Function *F) { return (void*)F; }
+  void *getPointerToFunction(Function *F) { return (void*)F; }
 
   // getCurrentExecutablePath() - Return the directory that the lli executable
   // lives in.