summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-29 05:26:09 +0000
committerChris Lattner <sabre@nondot.org>2009-10-29 05:26:09 +0000
commitf32a6a3091e0b01d17926f4b1cf78972854b8cb5 (patch)
tree12a35a7b53cc71961a5eecc2913bb06842e142af /lib/ExecutionEngine/Interpreter/Interpreter.h
parent7a8b33a9a4da1724a652585ad805ea84a59b90e7 (diff)
downloadllvm-f32a6a3091e0b01d17926f4b1cf78972854b8cb5.tar.gz
llvm-f32a6a3091e0b01d17926f4b1cf78972854b8cb5.tar.bz2
llvm-f32a6a3091e0b01d17926f4b1cf78972854b8cb5.tar.xz
add interpreter support for indirect goto / blockaddress. The interpreter
now correctly runs clang's test/CodeGen/indirect-goto.c. The JIT will abort on it until someone feels compelled to implement this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index eaa8ec5c38..038830cc08 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -135,6 +135,7 @@ public:
void visitReturnInst(ReturnInst &I);
void visitBranchInst(BranchInst &I);
void visitSwitchInst(SwitchInst &I);
+ void visitIndirectBrInst(IndirectBrInst &I);
void visitBinaryOperator(BinaryOperator &I);
void visitICmpInst(ICmpInst &I);
@@ -202,6 +203,7 @@ private: // Helper functions
void SwitchToNewBasicBlock(BasicBlock *Dest, ExecutionContext &SF);
void *getPointerToFunction(Function *F) { return (void*)F; }
+ void *getPointerToBasicBlock(BasicBlock *BB) { return (void*)BB; }
void initializeExecutionEngine() { }
void initializeExternalFunctions();