diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2004-06-24 17:31:42 +0000 | 
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-06-24 17:31:42 +0000 | 
| commit | f57c3cd1e86ea52b21256871cc93adb71c6ffe06 (patch) | |
| tree | caebd30c6aa6bd96558889580ebcad56f2570b92 /llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp | |
| parent | eea4b17cf8e2690b26adb90511c3cd45355b2ff9 (diff) | |
| download | bcm5719-llvm-f57c3cd1e86ea52b21256871cc93adb71c6ffe06.tar.gz bcm5719-llvm-f57c3cd1e86ea52b21256871cc93adb71c6ffe06.zip | |
* Order #includes
* Use the DEBUG() guard for debug printouts
llvm-svn: 14367
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp index 27ae6bde37a..37c415f6cc4 100644 --- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp @@ -14,22 +14,23 @@  //  //===----------------------------------------------------------------------===// -#include <set> - +#define DEBUG_TYPE "asmprinter"  #include "PowerPC.h"  #include "PowerPCInstrInfo.h"  #include "llvm/Constants.h"  #include "llvm/DerivedTypes.h"  #include "llvm/Module.h"  #include "llvm/Assembly/Writer.h" -#include "llvm/CodeGen/MachineFunctionPass.h"  #include "llvm/CodeGen/MachineConstantPool.h" +#include "llvm/CodeGen/MachineFunctionPass.h"  #include "llvm/CodeGen/MachineInstr.h"  #include "llvm/Target/TargetMachine.h"  #include "llvm/Support/Mangler.h" +#include "Support/CommandLine.h" +#include "Support/Debug.h"  #include "Support/Statistic.h"  #include "Support/StringExtras.h" -#include "Support/CommandLine.h" +#include <set>  namespace llvm { @@ -526,7 +527,8 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {    }    O << TII.getName(MI->getOpcode()) << " "; -  std::cout << TII.getName(MI->getOpcode()) << " expects " << ArgCount << " args\n"; +  DEBUG(std::cerr << TII.getName(MI->getOpcode()) << " expects "  +                  << ArgCount << " args\n");    if(Opcode == PPC32::LOADLoAddr) {      printOp(MI->getOperand(0)); | 

