diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-10-29 05:26:09 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-10-29 05:26:09 +0000 |
| commit | 0c778f70e9259d869732c59731d152277a365f72 (patch) | |
| tree | 991a236f54224fc09270b9a89f51b6a2efa6e775 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.h | |
| parent | 08bb9ef7f71f2053a3683913bbad19941e0a6dc9 (diff) | |
| download | bcm5719-llvm-0c778f70e9259d869732c59731d152277a365f72.tar.gz bcm5719-llvm-0c778f70e9259d869732c59731d152277a365f72.zip | |
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.
llvm-svn: 85488
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.h')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h index eaa8ec5c38b..038830cc082 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/llvm/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(); |

