1 //===- llvm/Reoptimizer/Mapping/MappingInfo.h ------------------*- C++ -*--=////
3 // Data structures to support the Reoptimizer's Instruction-to-MachineInstr
4 // mapping information gatherer.
6 //===----------------------------------------------------------------------===//
8 #ifndef LLVM_REOPTIMIZER_MAPPING_MAPPINGINFO_H
9 #define LLVM_REOPTIMIZER_MAPPING_MAPPINGINFO_H
16 Pass *getMappingInfoCollector(std::ostream &out);
19 class byteVector : public std::vector <unsigned char> {
21 void dumpAssembly (std::ostream &Out);
24 std::string symbolPrefix;
25 unsigned functionNumber;
28 void outByte (unsigned char b) { bytes.push_back (b); }
29 MappingInfo (std::string _comment, std::string _symbolPrefix,
30 unsigned _functionNumber) : comment(_comment),
31 symbolPrefix(_symbolPrefix), functionNumber(_functionNumber) { }
32 void dumpAssembly (std::ostream &Out);
33 unsigned char *getBytes (unsigned int &length) {
34 length = bytes.size(); return &bytes[0];