Adjust files for move of mapping info stuff into the Sparc directory
llvm-svn: 7802
diff --git a/llvm/lib/Target/Sparc/MappingInfo.h b/llvm/lib/Target/Sparc/MappingInfo.h
index c3177de..aa07bfb 100644
--- a/llvm/lib/Target/Sparc/MappingInfo.h
+++ b/llvm/lib/Target/Sparc/MappingInfo.h
@@ -1,12 +1,12 @@
-//===- llvm/Reoptimizer/Mapping/MappingInfo.h ------------------*- C++ -*--=////
+//===- lib/Target/Sparc/MappingInfo.h ---------------------------*- C++ -*-===//
//
// Data structures to support the Reoptimizer's Instruction-to-MachineInstr
// mapping information gatherer.
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_REOPTIMIZER_MAPPING_MAPPINGINFO_H
-#define LLVM_REOPTIMIZER_MAPPING_MAPPINGINFO_H
+#ifndef MAPPINGINFO_H
+#define MAPPINGINFO_H
#include <iosfwd>
#include <vector>
@@ -16,9 +16,8 @@
Pass *getMappingInfoCollector(std::ostream &out);
class MappingInfo {
- class byteVector : public std::vector <unsigned char> {
- public:
- void dumpAssembly (std::ostream &Out);
+ struct byteVector : public std::vector <unsigned char> {
+ void dumpAssembly (std::ostream &Out);
};
std::string comment;
std::string symbolPrefix;
@@ -26,11 +25,11 @@
byteVector bytes;
public:
void outByte (unsigned char b) { bytes.push_back (b); }
- MappingInfo (std::string _comment, std::string _symbolPrefix,
- unsigned _functionNumber) : comment(_comment),
- symbolPrefix(_symbolPrefix), functionNumber(_functionNumber) { }
+ MappingInfo (std::string Comment, std::string SymbolPrefix,
+ unsigned FunctionNumber) : comment(Comment),
+ symbolPrefix(SymbolPrefix), functionNumber(FunctionNumber) {}
void dumpAssembly (std::ostream &Out);
- unsigned char *getBytes (unsigned int &length) {
+ unsigned char *getBytes (unsigned &length) {
length = bytes.size(); return &bytes[0];
}
};