mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
* Order #includes
* Use the DEBUG() guard for debug printouts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,22 +14,23 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include <set>
|
#define DEBUG_TYPE "asmprinter"
|
||||||
|
|
||||||
#include "PowerPC.h"
|
#include "PowerPC.h"
|
||||||
#include "PowerPCInstrInfo.h"
|
#include "PowerPCInstrInfo.h"
|
||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Assembly/Writer.h"
|
#include "llvm/Assembly/Writer.h"
|
||||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
|
||||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||||
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||||
#include "llvm/CodeGen/MachineInstr.h"
|
#include "llvm/CodeGen/MachineInstr.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
#include "llvm/Support/Mangler.h"
|
#include "llvm/Support/Mangler.h"
|
||||||
|
#include "Support/CommandLine.h"
|
||||||
|
#include "Support/Debug.h"
|
||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
#include "Support/StringExtras.h"
|
#include "Support/StringExtras.h"
|
||||||
#include "Support/CommandLine.h"
|
#include <set>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
@@ -526,7 +527,8 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
O << TII.getName(MI->getOpcode()) << " ";
|
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) {
|
if(Opcode == PPC32::LOADLoAddr) {
|
||||||
printOp(MI->getOperand(0));
|
printOp(MI->getOperand(0));
|
||||||
|
|||||||
@@ -14,22 +14,23 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include <set>
|
#define DEBUG_TYPE "asmprinter"
|
||||||
|
|
||||||
#include "PowerPC.h"
|
#include "PowerPC.h"
|
||||||
#include "PowerPCInstrInfo.h"
|
#include "PowerPCInstrInfo.h"
|
||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Assembly/Writer.h"
|
#include "llvm/Assembly/Writer.h"
|
||||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
|
||||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||||
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||||
#include "llvm/CodeGen/MachineInstr.h"
|
#include "llvm/CodeGen/MachineInstr.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
#include "llvm/Support/Mangler.h"
|
#include "llvm/Support/Mangler.h"
|
||||||
|
#include "Support/CommandLine.h"
|
||||||
|
#include "Support/Debug.h"
|
||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
#include "Support/StringExtras.h"
|
#include "Support/StringExtras.h"
|
||||||
#include "Support/CommandLine.h"
|
#include <set>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
@@ -526,7 +527,8 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
O << TII.getName(MI->getOpcode()) << " ";
|
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) {
|
if(Opcode == PPC32::LOADLoAddr) {
|
||||||
printOp(MI->getOperand(0));
|
printOp(MI->getOperand(0));
|
||||||
|
|||||||
@@ -14,22 +14,23 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include <set>
|
#define DEBUG_TYPE "asmprinter"
|
||||||
|
|
||||||
#include "PowerPC.h"
|
#include "PowerPC.h"
|
||||||
#include "PowerPCInstrInfo.h"
|
#include "PowerPCInstrInfo.h"
|
||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Assembly/Writer.h"
|
#include "llvm/Assembly/Writer.h"
|
||||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
|
||||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||||
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||||
#include "llvm/CodeGen/MachineInstr.h"
|
#include "llvm/CodeGen/MachineInstr.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
#include "llvm/Support/Mangler.h"
|
#include "llvm/Support/Mangler.h"
|
||||||
|
#include "Support/CommandLine.h"
|
||||||
|
#include "Support/Debug.h"
|
||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
#include "Support/StringExtras.h"
|
#include "Support/StringExtras.h"
|
||||||
#include "Support/CommandLine.h"
|
#include <set>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
@@ -526,7 +527,8 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
O << TII.getName(MI->getOpcode()) << " ";
|
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) {
|
if(Opcode == PPC32::LOADLoAddr) {
|
||||||
printOp(MI->getOperand(0));
|
printOp(MI->getOperand(0));
|
||||||
|
|||||||
Reference in New Issue
Block a user