Expose passinfo from BreakCriticalEdges pass so that it may be "Required" by
[oota-llvm.git] / include / llvm / Bytecode / Format.h
1 //===-- llvm/Bytecode/Format.h - VM bytecode file format info ----*- C++ -*--=//
2 //
3 // This header defines intrinsic constants that are useful to libraries that 
4 // need to hack on bytecode files directly, like the reader and writer.
5 //
6 //===----------------------------------------------------------------------===//
7
8 #ifndef LLVM_BYTECODE_FORMAT_H
9 #define LLVM_BYTECODE_FORMAT_H
10
11 class BytecodeFormat {   // Throw the constants into a poorman's namespace...
12   BytecodeFormat();      // do not implement
13 public:
14
15   // ID Numbers that are used in bytecode files...
16   enum FileBlockIDs {
17     // File level identifiers...
18     Module = 0x01,
19
20     // Module subtypes:
21     Function = 0x11,
22     ConstantPool,
23     SymbolTable,
24     ModuleGlobalInfo,
25
26     // Method subtypes:
27     MethodInfo = 0x21,
28     // Can also have ConstantPool block
29     // Can also have SymbolTable block
30     BasicBlock = 0x31,        // May contain many basic blocks
31   };
32 };
33 #endif