From fe11a97fcde7c63109c3ad36570657807d0cd6ef Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Dec 2002 23:59:41 +0000 Subject: 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 --- .../Interpreter/ExecutionAnnotations.h | 28 ---------------------- 1 file changed, 28 deletions(-) (limited to 'lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h') 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 -- cgit v1.2.3-18-g5258