Add a JITEventListener interface that gets called back when a new function is
authorJeffrey Yasskin <jyasskin@google.com>
Thu, 25 Jun 2009 02:04:04 +0000 (02:04 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Thu, 25 Jun 2009 02:04:04 +0000 (02:04 +0000)
commitdf5a7daff9c7664bff8b713e8ed5155319bc6041
treed0a7b2a265916b1e0e36ef6423b56749d3429c9a
parentb6c29d55123f6b8c3f9e4d56e4be653a1fd2a472
Add a JITEventListener interface that gets called back when a new function is
emitted or the machine code for a function is freed.  Chris mentioned that we
may also want a notification when a stub is emitted, but that'll be a future
change.  I intend to use this to tell oprofile where functions are emitted and
what lines correspond to what addresses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74157 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/ExecutionEngine.h
include/llvm/ExecutionEngine/JITEventListener.h [new file with mode: 0644]
lib/ExecutionEngine/JIT/JIT.cpp
lib/ExecutionEngine/JIT/JIT.h
lib/ExecutionEngine/JIT/JITEmitter.cpp
lib/ExecutionEngine/JIT/MacOSJITEventListener.cpp [new file with mode: 0644]
tools/lli/lli.cpp
unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp [new file with mode: 0644]
unittests/ExecutionEngine/JIT/Makefile [new file with mode: 0644]
unittests/ExecutionEngine/Makefile [new file with mode: 0644]
unittests/Makefile