Write llvm bytecode to output .s file as last step of LLC.
llvm-svn: 1728
diff --git a/llvm/lib/Target/Sparc/Sparc.cpp b/llvm/lib/Target/Sparc/Sparc.cpp
index 422dda0..14be992 100644
--- a/llvm/lib/Target/Sparc/Sparc.cpp
+++ b/llvm/lib/Target/Sparc/Sparc.cpp
@@ -269,4 +269,7 @@
// Emit Module level assembly after all of the methods have been processed.
PM.add(getModuleAsmPrinterPass(PM, Out));
+
+ // Emit bytecode to the sparc assembly file into its special section next
+ PM.add(getEmitBytecodeToAsmPass(Out));
}