Be const correct

llvm-svn: 826
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp
index 9001c74..7a200e0 100644
--- a/llvm/lib/Target/Sparc/EmitAssembly.cpp
+++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp
@@ -21,7 +21,7 @@
 class SparcAsmPrinter {
   ostream &Out;
   SlotCalculator Table;
-  UltraSparc &Target;
+  const UltraSparc &Target;
 
   enum Sections {
     Unknown,
@@ -30,7 +30,7 @@
     ReadOnly,
   } CurSection;
 public:
-  inline SparcAsmPrinter(ostream &o, const Module *M, UltraSparc &t)
+  inline SparcAsmPrinter(ostream &o, const Module *M, const UltraSparc &t)
     : Out(o), Table(SlotCalculator(M, true)), Target(t), CurSection(Unknown) {
     emitModule(M);
   }
@@ -230,6 +230,6 @@
 // method. The specified method must have been compiled before this may be
 // used.
 //
-void UltraSparc::emitAssembly(const Module *M, ostream &Out) {
+void UltraSparc::emitAssembly(const Module *M, ostream &Out) const {
   SparcAsmPrinter Print(Out, M, *this);
 }