aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/MappingInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-13 02:38:16 +0000
committerChris Lattner <sabre@nondot.org>2003-08-13 02:38:16 +0000
commit48e60794783d8fa6a5dd52a74ebfc1f133c3480c (patch)
tree815ee8524de6fc2f1b56a612d844aa69097eb149 /lib/Target/SparcV9/MappingInfo.h
parent7f2438f1700789278ebd28362c41646165b5ce00 (diff)
downloadexternal_llvm-48e60794783d8fa6a5dd52a74ebfc1f133c3480c.zip
external_llvm-48e60794783d8fa6a5dd52a74ebfc1f133c3480c.tar.gz
external_llvm-48e60794783d8fa6a5dd52a74ebfc1f133c3480c.tar.bz2
Adjust files for move of mapping info stuff into the Sparc directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/MappingInfo.h')
-rw-r--r--lib/Target/SparcV9/MappingInfo.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/Target/SparcV9/MappingInfo.h b/lib/Target/SparcV9/MappingInfo.h
index c3177de..aa07bfb 100644
--- a/lib/Target/SparcV9/MappingInfo.h
+++ b/lib/Target/SparcV9/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 @@ class Pass;
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 @@ class MappingInfo {
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];
}
};