Standardize header file comments
[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     GlobalTypePlane,
26
27     // Function subtypes:
28     MethodInfo = 0x21,
29     // Can also have ConstantPool block
30     // Can also have SymbolTable block
31     BasicBlock = 0x31,        // May contain many basic blocks
32   };
33 };
34 #endif