PowerPCInstrInfo has gone away, PPC32 and PPC64 share opcodes.
[oota-llvm.git] / lib / Target / SparcV9 / EmitBytecodeToAssembly.cpp
index 2c45021f007b32bde71ba79d51c1a5216f3ae401..0826f76284e7b4ab516c2e9daa56a2a523942012 100644 (file)
@@ -1,4 +1,4 @@
-//===-- EmitBytecodeToAssembly.cpp - Emit bytecode to Sparc .s File --------==//
+//===-- EmitBytecodeToAssembly.cpp - Emit bytecode to SparcV9 .s File ------==//
 // 
 //                     The LLVM Compiler Infrastructure
 //
 //
 //===----------------------------------------------------------------------===//
 
-#include "SparcInternals.h"
+#include "SparcV9Internals.h"
 #include "llvm/Pass.h"
 #include "llvm/Bytecode/Writer.h"
 #include <iostream>
 
+namespace llvm {
+
 using std::ostream;
 
 namespace {
@@ -84,13 +86,13 @@ namespace {
        << "\n";
   }
 
-  // SparcBytecodeWriter - Write bytecode out to a stream that is sparc'ified
-  class SparcBytecodeWriter : public Pass {
+  // SparcV9BytecodeWriter - Write bytecode out to a stream that is sparc'ified
+  class SparcV9BytecodeWriter : public Pass {
     std::ostream &Out;
   public:
-    SparcBytecodeWriter(std::ostream &out) : Out(out) {}
+    SparcV9BytecodeWriter(std::ostream &out) : Out(out) {}
 
-    const char *getPassName() const { return "Emit Bytecode to Sparc Assembly";}
+    const char *getPassName() const { return "Emit Bytecode to SparcV9 Assembly";}
     
     virtual bool run(Module &M) {
       // Write an object containing the bytecode to the SPARC assembly stream
@@ -110,6 +112,8 @@ namespace {
   };
 }  // end anonymous namespace
 
-Pass *UltraSparc::getBytecodeAsmPrinterPass(std::ostream &Out) {
-  return new SparcBytecodeWriter(Out);
+Pass *createBytecodeAsmPrinterPass(std::ostream &Out) {
+  return new SparcV9BytecodeWriter(Out);
 }
+
+} // End llvm namespace