rename printMachineInstruction -> EmitInstruction
authorChris Lattner <sabre@nondot.org>
Wed, 3 Feb 2010 01:41:03 +0000 (01:41 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 3 Feb 2010 01:41:03 +0000 (01:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95184 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h

index 3670efcc22c6c73e8f92a2c34d0d4da20ae0ca92..0a27827311de679b1dfc45d164a95717ca0af50c 100644 (file)
@@ -43,14 +43,9 @@ PIC16AsmPrinter::PIC16AsmPrinter(formatted_raw_ostream &O, TargetMachine &TM,
   PTOF = (PIC16TargetObjectFile *)&PTLI->getObjFileLowering();
 }
 
-bool PIC16AsmPrinter::printMachineInstruction(const MachineInstr *MI) {
-  processDebugLoc(MI, true);
+void PIC16AsmPrinter::EmitInstruction(const MachineInstr *MI) {
   printInstruction(MI);
-  if (VerboseAsm)
-    EmitComments(*MI);
   O << '\n';
-  processDebugLoc(MI, false);
-  return true;
 }
 
 static int getFunctionColor(const Function *F) {
@@ -148,7 +143,7 @@ bool PIC16AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
       }
         
       // Print the assembly for the instruction.
-      printMachineInstruction(II);
+      EmitInstruction(II);
     }
   }
   
index 88d20f45f3a530473f430f03a61c4ebfb04d1083..77b6e634710168c38a3fd29d9eabd4a7a73761c7 100644 (file)
@@ -48,7 +48,7 @@ namespace llvm {
     void printInstruction(const MachineInstr *MI); // definition autogenerated.
     static const char *getRegisterName(unsigned RegNo);
 
-    bool printMachineInstruction(const MachineInstr *MI);
+    void EmitInstruction(const MachineInstr *MI);
     void EmitFunctionDecls (Module &M);
     void EmitUndefinedVars (Module &M);
     void EmitDefinedVars (Module &M);