mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9ad9c24ae
commit
ddc5de4cd6
@ -252,8 +252,8 @@ Function *CodeExtractor::constructFunction(const Values &inputs,
|
|||||||
BasicBlock *newHeader,
|
BasicBlock *newHeader,
|
||||||
Function *oldFunction,
|
Function *oldFunction,
|
||||||
Module *M) {
|
Module *M) {
|
||||||
DEBUG(errs() << "inputs: " << inputs.size() << "\n");
|
DEBUG(dbgs() << "inputs: " << inputs.size() << "\n");
|
||||||
DEBUG(errs() << "outputs: " << outputs.size() << "\n");
|
DEBUG(dbgs() << "outputs: " << outputs.size() << "\n");
|
||||||
|
|
||||||
// This function returns unsigned, outputs will go back by reference.
|
// This function returns unsigned, outputs will go back by reference.
|
||||||
switch (NumExitBlocks) {
|
switch (NumExitBlocks) {
|
||||||
@ -269,25 +269,25 @@ Function *CodeExtractor::constructFunction(const Values &inputs,
|
|||||||
for (Values::const_iterator i = inputs.begin(),
|
for (Values::const_iterator i = inputs.begin(),
|
||||||
e = inputs.end(); i != e; ++i) {
|
e = inputs.end(); i != e; ++i) {
|
||||||
const Value *value = *i;
|
const Value *value = *i;
|
||||||
DEBUG(errs() << "value used in func: " << *value << "\n");
|
DEBUG(dbgs() << "value used in func: " << *value << "\n");
|
||||||
paramTy.push_back(value->getType());
|
paramTy.push_back(value->getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the types of the output values to the function's argument list.
|
// Add the types of the output values to the function's argument list.
|
||||||
for (Values::const_iterator I = outputs.begin(), E = outputs.end();
|
for (Values::const_iterator I = outputs.begin(), E = outputs.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
DEBUG(errs() << "instr used in func: " << **I << "\n");
|
DEBUG(dbgs() << "instr used in func: " << **I << "\n");
|
||||||
if (AggregateArgs)
|
if (AggregateArgs)
|
||||||
paramTy.push_back((*I)->getType());
|
paramTy.push_back((*I)->getType());
|
||||||
else
|
else
|
||||||
paramTy.push_back(PointerType::getUnqual((*I)->getType()));
|
paramTy.push_back(PointerType::getUnqual((*I)->getType()));
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(errs() << "Function type: " << *RetTy << " f(");
|
DEBUG(dbgs() << "Function type: " << *RetTy << " f(");
|
||||||
for (std::vector<const Type*>::iterator i = paramTy.begin(),
|
for (std::vector<const Type*>::iterator i = paramTy.begin(),
|
||||||
e = paramTy.end(); i != e; ++i)
|
e = paramTy.end(); i != e; ++i)
|
||||||
DEBUG(errs() << **i << ", ");
|
DEBUG(dbgs() << **i << ", ");
|
||||||
DEBUG(errs() << ")\n");
|
DEBUG(dbgs() << ")\n");
|
||||||
|
|
||||||
if (AggregateArgs && (inputs.size() + outputs.size() > 0)) {
|
if (AggregateArgs && (inputs.size() + outputs.size() > 0)) {
|
||||||
PointerType *StructPtr =
|
PointerType *StructPtr =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user