Move annotation to support library

llvm-svn: 5268
This commit is contained in:
Chris Lattner 2003-01-14 21:29:58 +00:00
parent 67229e4bff
commit 4fd26cc90e
8 changed files with 15 additions and 18 deletions

View File

@ -1,21 +1,19 @@
//===-- llvm/Annotation.h - Annotation classes -------------------*- C++ -*--=// //===-- Support/Annotation.h - Annotation classes ---------------*- C++ -*-===//
// //
// This file contains the declarations for two classes: Annotation & Annotable. // This file contains the declarations for two classes: Annotation & Annotable.
// Using these two simple classes, anything that derives from Annotable can have // Using these two simple classes, anything that derives from Annotable can have
// Annotation subclasses attached to them, ready for easy retrieval. // Annotation subclasses attached to them, ready for easy retrieval.
// //
// Annotations are designed to be easily attachable to LLVM code (as all Value's // Annotations are designed to be easily attachable to various classes.
// are Annotable), and can even be serialized to bytecode and to assembly.
// //
// The AnnotationManager class (defined in AnnotationManager.h) is essential for // The AnnotationManager class is essential for using these classes. It is
// using these classes. It is responsible for turning Annotation name strings // responsible for turning Annotation name strings into tokens [unique id #'s]
// into tokens [unique id #'s] that may be used to search for and create // that may be used to search for and create annotations.
// annotations.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#ifndef LLVM_ANNOTATION_H #ifndef SUPPORT_ANNOTATION_H
#define LLVM_ANNOTATION_H #define SUPPORT_ANNOTATION_H
#include <string> #include <string>
class AnnotationID; class AnnotationID;

View File

@ -18,7 +18,7 @@
#ifndef LLVM_CODEGEN_MACHINECODE_FOR_INSTRUCTION_H #ifndef LLVM_CODEGEN_MACHINECODE_FOR_INSTRUCTION_H
#define LLVM_CODEGEN_MACHINECODE_FOR_INSTRUCTION_H #define LLVM_CODEGEN_MACHINECODE_FOR_INSTRUCTION_H
#include "llvm/Annotation.h" #include "Support/Annotation.h"
#include <vector> #include <vector>
class MachineInstr; class MachineInstr;
class Instruction; class Instruction;

View File

@ -12,7 +12,7 @@
#define LLVM_CODEGEN_MACHINEFUNCTION_H #define LLVM_CODEGEN_MACHINEFUNCTION_H
#include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Annotation.h" #include "Support/Annotation.h"
#include "Support/ilist" #include "Support/ilist"
class Function; class Function;

View File

@ -9,11 +9,10 @@
#ifndef LLVM_CODEGEN_MACHINEINSTR_H #ifndef LLVM_CODEGEN_MACHINEINSTR_H
#define LLVM_CODEGEN_MACHINEINSTR_H #define LLVM_CODEGEN_MACHINEINSTR_H
#include "llvm/Annotation.h"
#include "llvm/Target/MRegisterInfo.h" #include "llvm/Target/MRegisterInfo.h"
#include "Support/iterator" #include "Support/Annotation.h"
#include "Support/NonCopyable.h" #include "Support/NonCopyable.h"
#include <vector> #include "Support/iterator"
class Value; class Value;
class Function; class Function;
class MachineBasicBlock; class MachineBasicBlock;

View File

@ -13,8 +13,8 @@
#ifndef LLVM_TARGET_TARGETDATA_H #ifndef LLVM_TARGET_TARGETDATA_H
#define LLVM_TARGET_TARGETDATA_H #define LLVM_TARGET_TARGETDATA_H
#include "llvm/Annotation.h"
#include "llvm/Pass.h" #include "llvm/Pass.h"
#include "Support/Annotation.h"
#include "Support/DataTypes.h" #include "Support/DataTypes.h"
#include <vector> #include <vector>
class Value; class Value;

View File

@ -10,8 +10,8 @@
#ifndef LLVM_VALUE_H #ifndef LLVM_VALUE_H
#define LLVM_VALUE_H #define LLVM_VALUE_H
#include "llvm/Annotation.h"
#include "llvm/AbstractTypeUser.h" #include "llvm/AbstractTypeUser.h"
#include "Support/Annotation.h"
#include "Support/Casting.h" #include "Support/Casting.h"
#include <iostream> #include <iostream>
#include <vector> #include <vector>

View File

@ -5,7 +5,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include <map> #include <map>
#include "llvm/Annotation.h" #include "Support/Annotation.h"
using std::string; using std::string;
using std::map; using std::map;
using std::pair; using std::pair;

View File

@ -5,7 +5,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include <map> #include <map>
#include "llvm/Annotation.h" #include "Support/Annotation.h"
using std::string; using std::string;
using std::map; using std::map;
using std::pair; using std::pair;