There is no need to build an archive version of this library
[oota-llvm.git] / lib / Target / SparcV9 / MappingInfo.h
index aa07bfbf71b4a59ea8558ff25b7f2e2fc83cf0ff..4fbd04fbae940c617e8d0a7c58aeb2d5358c758f 100644 (file)
@@ -1,4 +1,11 @@
-//===- lib/Target/Sparc/MappingInfo.h ---------------------------*- C++ -*-===//
+//===- lib/Target/SparcV9/MappingInfo.h -------------------------*- C++ -*-===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
 //
 // Data structures to support the Reoptimizer's Instruction-to-MachineInstr
 // mapping information gatherer.
 #include <iosfwd>
 #include <vector>
 #include <string>
-class Pass;
 
-Pass *getMappingInfoCollector(std::ostream &out);
+namespace llvm {
+
+class ModulePass;
+
+ModulePass *getMappingInfoAsmPrinterPass(std::ostream &out);
+ModulePass *createInternalGlobalMapperPass();
 
 class MappingInfo {
   struct byteVector : public std::vector <unsigned char> {
@@ -26,12 +37,14 @@ class MappingInfo {
 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) {}
+                   unsigned FunctionNumber) : comment(Comment),
+                   symbolPrefix(SymbolPrefix), functionNumber(FunctionNumber) {}
   void dumpAssembly (std::ostream &Out);
   unsigned char *getBytes (unsigned &length) {
-       length = bytes.size(); return &bytes[0];
+        length = bytes.size(); return &bytes[0];
   }
 };
 
+} // End llvm namespace
+
 #endif