forked from OSchip/llvm-project
Removed even more std::cerr and #include <iostream> things.
llvm-svn: 31813
This commit is contained in:
parent
4b1a04ac62
commit
c8e81b8d48
|
@ -23,7 +23,6 @@
|
||||||
#include "llvm/Support/Mangler.h"
|
#include "llvm/Support/Mangler.h"
|
||||||
#include "llvm/Target/TargetAsmInfo.h"
|
#include "llvm/Target/TargetAsmInfo.h"
|
||||||
#include "llvm/Target/TargetOptions.h"
|
#include "llvm/Target/TargetOptions.h"
|
||||||
#include <iostream>
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
/// getSectionForFunction - Return the section that we should emit the
|
/// getSectionForFunction - Return the section that we should emit the
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include "llvm/ADT/Statistic.h"
|
#include "llvm/ADT/Statistic.h"
|
||||||
#include "llvm/Support/Compiler.h"
|
#include "llvm/Support/Compiler.h"
|
||||||
#include "llvm/Target/TargetOptions.h"
|
#include "llvm/Target/TargetOptions.h"
|
||||||
#include <iostream>
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -623,8 +622,7 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
|
||||||
default:
|
default:
|
||||||
assert(0 && "psuedo instructions should be removed before code emission");
|
assert(0 && "psuedo instructions should be removed before code emission");
|
||||||
case TargetInstrInfo::INLINEASM:
|
case TargetInstrInfo::INLINEASM:
|
||||||
std::cerr << "JIT does not support inline asm!\n";
|
assert(0 && "JIT does not support inline asm!\n");
|
||||||
abort();
|
|
||||||
case X86::IMPLICIT_USE:
|
case X86::IMPLICIT_USE:
|
||||||
case X86::IMPLICIT_DEF:
|
case X86::IMPLICIT_DEF:
|
||||||
case X86::IMPLICIT_DEF_GR8:
|
case X86::IMPLICIT_DEF_GR8:
|
||||||
|
|
|
@ -464,12 +464,12 @@ void X86DAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
|
||||||
|
|
||||||
// Codegen the basic block.
|
// Codegen the basic block.
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG(std::cerr << "===== Instruction selection begins:\n");
|
DOUT << "===== Instruction selection begins:\n";
|
||||||
Indent = 0;
|
Indent = 0;
|
||||||
#endif
|
#endif
|
||||||
DAG.setRoot(SelectRoot(DAG.getRoot()));
|
DAG.setRoot(SelectRoot(DAG.getRoot()));
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG(std::cerr << "===== Instruction selection ends:\n");
|
DOUT << "===== Instruction selection ends:\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DAG.RemoveDeadNodes();
|
DAG.RemoveDeadNodes();
|
||||||
|
@ -966,19 +966,17 @@ SDNode *X86DAGToDAGISel::Select(SDOperand N) {
|
||||||
unsigned Opcode = Node->getOpcode();
|
unsigned Opcode = Node->getOpcode();
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG(std::cerr << std::string(Indent, ' '));
|
DOUT << std::string(Indent, ' ') << "Selecting: ";
|
||||||
DEBUG(std::cerr << "Selecting: ");
|
|
||||||
DEBUG(Node->dump(CurDAG));
|
DEBUG(Node->dump(CurDAG));
|
||||||
DEBUG(std::cerr << "\n");
|
DOUT << "\n";
|
||||||
Indent += 2;
|
Indent += 2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (Opcode >= ISD::BUILTIN_OP_END && Opcode < X86ISD::FIRST_NUMBER) {
|
if (Opcode >= ISD::BUILTIN_OP_END && Opcode < X86ISD::FIRST_NUMBER) {
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG(std::cerr << std::string(Indent-2, ' '));
|
DOUT << std::string(Indent-2, ' ') << "== ";
|
||||||
DEBUG(std::cerr << "== ");
|
|
||||||
DEBUG(Node->dump(CurDAG));
|
DEBUG(Node->dump(CurDAG));
|
||||||
DEBUG(std::cerr << "\n");
|
DOUT << "\n";
|
||||||
Indent -= 2;
|
Indent -= 2;
|
||||||
#endif
|
#endif
|
||||||
return NULL; // Already selected.
|
return NULL; // Already selected.
|
||||||
|
@ -1106,10 +1104,9 @@ SDNode *X86DAGToDAGISel::Select(SDOperand N) {
|
||||||
ReplaceUses(N1.getValue(1), Result.getValue(1));
|
ReplaceUses(N1.getValue(1), Result.getValue(1));
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG(std::cerr << std::string(Indent-2, ' '));
|
DOUT << std::string(Indent-2, ' ') << "=> ";
|
||||||
DEBUG(std::cerr << "=> ");
|
|
||||||
DEBUG(Result.Val->dump(CurDAG));
|
DEBUG(Result.Val->dump(CurDAG));
|
||||||
DEBUG(std::cerr << "\n");
|
DOUT << "\n";
|
||||||
Indent -= 2;
|
Indent -= 2;
|
||||||
#endif
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -1218,10 +1215,9 @@ SDNode *X86DAGToDAGISel::Select(SDOperand N) {
|
||||||
ReplaceUses(N1.getValue(1), Result.getValue(1));
|
ReplaceUses(N1.getValue(1), Result.getValue(1));
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG(std::cerr << std::string(Indent-2, ' '));
|
DOUT << std::string(Indent-2, ' ') << "=> ";
|
||||||
DEBUG(std::cerr << "=> ");
|
|
||||||
DEBUG(Result.Val->dump(CurDAG));
|
DEBUG(Result.Val->dump(CurDAG));
|
||||||
DEBUG(std::cerr << "\n");
|
DOUT << "\n";
|
||||||
Indent -= 2;
|
Indent -= 2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1252,10 +1248,9 @@ SDNode *X86DAGToDAGISel::Select(SDOperand N) {
|
||||||
SDNode *ResNode = CurDAG->getTargetNode(Opc2, NVT, Tmp);
|
SDNode *ResNode = CurDAG->getTargetNode(Opc2, NVT, Tmp);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG(std::cerr << std::string(Indent-2, ' '));
|
DOUT << std::string(Indent-2, ' ') << "=> ";
|
||||||
DEBUG(std::cerr << "=> ");
|
|
||||||
DEBUG(ResNode->dump(CurDAG));
|
DEBUG(ResNode->dump(CurDAG));
|
||||||
DEBUG(std::cerr << "\n");
|
DOUT << "\n";
|
||||||
Indent -= 2;
|
Indent -= 2;
|
||||||
#endif
|
#endif
|
||||||
return ResNode;
|
return ResNode;
|
||||||
|
@ -1268,13 +1263,12 @@ SDNode *X86DAGToDAGISel::Select(SDOperand N) {
|
||||||
SDNode *ResNode = SelectCode(N);
|
SDNode *ResNode = SelectCode(N);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG(std::cerr << std::string(Indent-2, ' '));
|
DOUT << std::string(Indent-2, ' ') << "=> ";
|
||||||
DEBUG(std::cerr << "=> ");
|
|
||||||
if (ResNode == NULL || ResNode == N.Val)
|
if (ResNode == NULL || ResNode == N.Val)
|
||||||
DEBUG(N.Val->dump(CurDAG));
|
DEBUG(N.Val->dump(CurDAG));
|
||||||
else
|
else
|
||||||
DEBUG(ResNode->dump(CurDAG));
|
DEBUG(ResNode->dump(CurDAG));
|
||||||
DEBUG(std::cerr << "\n");
|
DOUT << "\n";
|
||||||
Indent -= 2;
|
Indent -= 2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include "llvm/CodeGen/MachineCodeEmitter.h"
|
#include "llvm/CodeGen/MachineCodeEmitter.h"
|
||||||
#include "llvm/Config/alloca.h"
|
#include "llvm/Config/alloca.h"
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
@ -195,7 +194,7 @@ extern "C" {
|
||||||
|
|
||||||
#else // Not an i386 host
|
#else // Not an i386 host
|
||||||
void X86CompilationCallback() {
|
void X86CompilationCallback() {
|
||||||
std::cerr << "Cannot call X86CompilationCallback() on a non-x86 arch!\n";
|
assert(0 && "Cannot call X86CompilationCallback() on a non-x86 arch!\n");
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -225,10 +224,10 @@ extern "C" void X86CompilationCallback2(intptr_t *StackPtr, intptr_t RetAddr) {
|
||||||
RetAddr -= 4; // Backtrack to the reference itself...
|
RetAddr -= 4; // Backtrack to the reference itself...
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
DEBUG(std::cerr << "In callback! Addr=" << (void*)RetAddr
|
DOUT << "In callback! Addr=" << (void*)RetAddr
|
||||||
<< " ESP=" << (void*)StackPtr
|
<< " ESP=" << (void*)StackPtr
|
||||||
<< ": Resolving call to function: "
|
<< ": Resolving call to function: "
|
||||||
<< TheVM->getFunctionReferencedName((void*)RetAddr) << "\n");
|
<< TheVM->getFunctionReferencedName((void*)RetAddr) << "\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Sanity check to make sure this really is a call instruction.
|
// Sanity check to make sure this really is a call instruction.
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#include "llvm/Target/TargetOptions.h"
|
#include "llvm/Target/TargetOptions.h"
|
||||||
#include "llvm/Target/TargetMachineRegistry.h"
|
#include "llvm/Target/TargetMachineRegistry.h"
|
||||||
#include "llvm/Transforms/Scalar.h"
|
#include "llvm/Transforms/Scalar.h"
|
||||||
#include <iostream>
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
/// X86TargetMachineModule - Note that this is used on hosts that cannot link
|
/// X86TargetMachineModule - Note that this is used on hosts that cannot link
|
||||||
|
|
Loading…
Reference in New Issue