aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h2
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index 86e36854db..852e48eb88 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -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();
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index 50765810ab..51675b5d67 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -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.