summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-17 17:26:22 +0000
committerChris Lattner <sabre@nondot.org>2003-09-17 17:26:22 +0000
commita28e1f281ae1493d8ae92fa919e7c12eef7768c5 (patch)
treed1b548a562b6cc8b4b7013f05ebdefbcecb302dc /llvm/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h
parentf22d845bd7df93a05f448cfb34bcdf3d149dc9b1 (diff)
downloadbcm5719-llvm-a28e1f281ae1493d8ae92fa919e7c12eef7768c5.tar.gz
bcm5719-llvm-a28e1f281ae1493d8ae92fa919e7c12eef7768c5.zip
Change FunctionInfo from being an annotation put on Functions to be
something which is mapped from functions. llvm-svn: 8580
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h b/llvm/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h
index e17aa4b3552..cca1233ea3e 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h
+++ b/llvm/lib/ExecutionEngine/Interpreter/ExecutionAnnotations.h
@@ -15,24 +15,10 @@
// information about the function, including the number of types present in the
// function, and the number of values for each type.
//
-// This annotation object is created on demand, and attaches other annotation
-// objects to the instructions in the function when it's created.
-//
-static AnnotationID FunctionInfoAID(
- AnnotationManager::getID("Interpreter::FunctionInfo"));
-
-struct FunctionInfo : public Annotation {
+struct FunctionInfo {
FunctionInfo(Function *F);
std::vector<unsigned> NumPlaneElements;
- // Create - Factory function to allow FunctionInfo annotations to be
- // created on demand.
- //
- static Annotation *Create(AnnotationID AID, const Annotable *O, void *) {
- assert(AID == FunctionInfoAID);
- return new FunctionInfo(cast<Function>((Value*)O));
- }
-
private:
unsigned getValueSlot(const Value *V);
};
OpenPOWER on IntegriCloud