diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-23 23:59:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-23 23:59:41 +0000 |
commit | fe11a97fcde7c63109c3ad36570657807d0cd6ef (patch) | |
tree | ac8df082eeca9d70e88d4dd64936cc821b2c2f93 /lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h | |
parent | b76d4965c18063955f5a7f027a1869da885769d5 (diff) |
Substantial changes to refactor LLI to incorporate both the Jello JIT and
the traditional LLI interpreter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h b/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h index 913e861595..1a5c7fee98 100644 --- a/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h +++ b/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h @@ -90,32 +90,4 @@ static AnnotationID BreakpointAID( // Just use an Annotation directly, Breakpoint is currently just a marker -//===----------------------------------------------------------------------===// -// Support for the GlobalAddress annotation -//===----------------------------------------------------------------------===// - -// This annotation (attached only to GlobalValue objects) is used to hold the -// address of the chunk of memory that represents a global value. For -// Functions, this pointer is the Function object pointer that represents it. -// For global variables, this is the dynamically allocated (and potentially -// initialized) chunk of memory for the global. This annotation is created on -// demand. -// -static AnnotationID GlobalAddressAID( - AnnotationManager::getID("Interpreter::GlobalAddress")); - -struct GlobalAddress : public Annotation { - void *Ptr; // The pointer itself - bool Delete; // Should I delete them memory on destruction? - - GlobalAddress(void *ptr, bool d) : Annotation(GlobalAddressAID), Ptr(ptr), - Delete(d) {} - ~GlobalAddress() { if (Delete) free(Ptr); } - - // Create - Factory function to allow GlobalAddress annotations to be - // created on demand. - // - static Annotation *Create(AnnotationID AID, const Annotable *O, void *); -}; - #endif |