Actually make debug output understandable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2008-10-31 19:15:52 +00:00
parent fd532d7cd9
commit ba44df60d6

View File

@@ -275,8 +275,8 @@ void ARMCodeEmitter::emitConstPoolInstruction(const MachineInstr &MI) {
ARMConstantPoolValue *ACPV = ARMConstantPoolValue *ACPV =
static_cast<ARMConstantPoolValue*>(MCPE.Val.MachineCPVal); static_cast<ARMConstantPoolValue*>(MCPE.Val.MachineCPVal);
DOUT << "\t** ARM constant pool #" << CPI << ", ' @ " DOUT << "\t** ARM constant pool #" << CPI << " @ "
<< (void*)MCE.getCurrentPCValue() << *ACPV << '\n'; << (void*)MCE.getCurrentPCValue() << " '" << *ACPV << "'\n";
GlobalValue *GV = ACPV->getGV(); GlobalValue *GV = ACPV->getGV();
if (GV) { if (GV) {
@@ -290,8 +290,8 @@ void ARMCodeEmitter::emitConstPoolInstruction(const MachineInstr &MI) {
} else { } else {
Constant *CV = MCPE.Val.ConstVal; Constant *CV = MCPE.Val.ConstVal;
DOUT << "\t** Constant pool #" << CPI << ", ' @ " DOUT << "\t** Constant pool #" << CPI << " @ "
<< (void*)MCE.getCurrentPCValue() << *CV << '\n'; << (void*)MCE.getCurrentPCValue() << " '" << *CV << "'\n";
if (GlobalValue *GV = dyn_cast<GlobalValue>(CV)) { if (GlobalValue *GV = dyn_cast<GlobalValue>(CV)) {
emitGlobalAddress(GV, ARM::reloc_arm_absolute, false); emitGlobalAddress(GV, ARM::reloc_arm_absolute, false);