1 //===- lib/Target/Sparc/MappingInfo.h ---------------------------*- C++ -*-===//
3 // Data structures to support the Reoptimizer's Instruction-to-MachineInstr
4 // mapping information gatherer.
6 //===----------------------------------------------------------------------===//
16 Pass *getMappingInfoCollector(std::ostream &out);
19 struct byteVector : public std::vector <unsigned char> {
20 void dumpAssembly (std::ostream &Out);
23 std::string symbolPrefix;
24 unsigned functionNumber;
27 void outByte (unsigned char b) { bytes.push_back (b); }
28 MappingInfo (std::string Comment, std::string SymbolPrefix,
29 unsigned FunctionNumber) : comment(Comment),
30 symbolPrefix(SymbolPrefix), functionNumber(FunctionNumber) {}
31 void dumpAssembly (std::ostream &Out);
32 unsigned char *getBytes (unsigned &length) {
33 length = bytes.size(); return &bytes[0];