mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ddcd6be8f
commit
2800eb1d30
@ -24,6 +24,7 @@
|
|||||||
#include "llvm/Target/TargetRegistry.h"
|
#include "llvm/Target/TargetRegistry.h"
|
||||||
#include "llvm/Transforms/Scalar.h"
|
#include "llvm/Transforms/Scalar.h"
|
||||||
#include "llvm/Support/CommandLine.h"
|
#include "llvm/Support/CommandLine.h"
|
||||||
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Support/FormattedStream.h"
|
#include "llvm/Support/FormattedStream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -246,7 +247,7 @@ static void printAndVerify(PassManagerBase &PM,
|
|||||||
const char *Banner,
|
const char *Banner,
|
||||||
bool allowDoubleDefs = false) {
|
bool allowDoubleDefs = false) {
|
||||||
if (PrintMachineCode)
|
if (PrintMachineCode)
|
||||||
PM.add(createMachineFunctionPrinterPass(errs(), Banner));
|
PM.add(createMachineFunctionPrinterPass(dbgs(), Banner));
|
||||||
|
|
||||||
if (VerifyMachineCode)
|
if (VerifyMachineCode)
|
||||||
PM.add(createMachineVerifierPass(allowDoubleDefs));
|
PM.add(createMachineVerifierPass(allowDoubleDefs));
|
||||||
@ -269,7 +270,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
|||||||
if (OptLevel != CodeGenOpt::None && !DisableLSR) {
|
if (OptLevel != CodeGenOpt::None && !DisableLSR) {
|
||||||
PM.add(createLoopStrengthReducePass(getTargetLowering()));
|
PM.add(createLoopStrengthReducePass(getTargetLowering()));
|
||||||
if (PrintLSR)
|
if (PrintLSR)
|
||||||
PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &errs()));
|
PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &dbgs()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Turn exception handling constructs into something the code generators can
|
// Turn exception handling constructs into something the code generators can
|
||||||
@ -302,7 +303,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
|||||||
if (PrintISelInput)
|
if (PrintISelInput)
|
||||||
PM.add(createPrintFunctionPass("\n\n"
|
PM.add(createPrintFunctionPass("\n\n"
|
||||||
"*** Final LLVM Code input to ISel ***\n",
|
"*** Final LLVM Code input to ISel ***\n",
|
||||||
&errs()));
|
&dbgs()));
|
||||||
|
|
||||||
// Standard Lower-Level Passes.
|
// Standard Lower-Level Passes.
|
||||||
|
|
||||||
@ -391,7 +392,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
|||||||
PM.add(createGCMachineCodeAnalysisPass());
|
PM.add(createGCMachineCodeAnalysisPass());
|
||||||
|
|
||||||
if (PrintGCInfo)
|
if (PrintGCInfo)
|
||||||
PM.add(createGCInfoPrinter(errs()));
|
PM.add(createGCInfoPrinter(dbgs()));
|
||||||
|
|
||||||
if (OptLevel != CodeGenOpt::None && !DisableCodePlace) {
|
if (OptLevel != CodeGenOpt::None && !DisableCodePlace) {
|
||||||
PM.add(createCodePlacementOptPass());
|
PM.add(createCodePlacementOptPass());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user