mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
IR: Print a newline when dumping Types
Type::dump() doesn't print a newline, which makes for a poor experience in a debugger. This looks like it was an ommission considering Value::dump() two lines above, so I've changed Type to add a newline as well. Of the two in-tree callers, one added a newline anyway, and I've updated the other one to use Type::print instead. llvm-svn: 215421
This commit is contained in:
parent
637a91873c
commit
ce04d92d5d
@ -2290,7 +2290,7 @@ void Value::printAsOperand(raw_ostream &O, bool PrintType, const Module *M) cons
|
|||||||
void Value::dump() const { print(dbgs()); dbgs() << '\n'; }
|
void Value::dump() const { print(dbgs()); dbgs() << '\n'; }
|
||||||
|
|
||||||
// Type::dump - allow easy printing of Types from the debugger.
|
// Type::dump - allow easy printing of Types from the debugger.
|
||||||
void Type::dump() const { print(dbgs()); }
|
void Type::dump() const { print(dbgs()); dbgs() << '\n'; }
|
||||||
|
|
||||||
// Module::dump() - Allow printing of Modules from the debugger.
|
// Module::dump() - Allow printing of Modules from the debugger.
|
||||||
void Module::dump() const { print(dbgs(), nullptr); }
|
void Module::dump() const { print(dbgs(), nullptr); }
|
||||||
|
@ -78,9 +78,9 @@ public:
|
|||||||
for (DenseMap<Type*, Type*>::const_iterator
|
for (DenseMap<Type*, Type*>::const_iterator
|
||||||
I = MappedTypes.begin(), E = MappedTypes.end(); I != E; ++I) {
|
I = MappedTypes.begin(), E = MappedTypes.end(); I != E; ++I) {
|
||||||
dbgs() << "TypeMap: ";
|
dbgs() << "TypeMap: ";
|
||||||
I->first->dump();
|
I->first->print(dbgs());
|
||||||
dbgs() << " => ";
|
dbgs() << " => ";
|
||||||
I->second->dump();
|
I->second->print(dbgs());
|
||||||
dbgs() << '\n';
|
dbgs() << '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10981,6 +10981,6 @@ bool ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(
|
|||||||
HABaseType Base = HA_UNKNOWN;
|
HABaseType Base = HA_UNKNOWN;
|
||||||
uint64_t Members = 0;
|
uint64_t Members = 0;
|
||||||
bool result = isHomogeneousAggregate(Ty, Base, Members);
|
bool result = isHomogeneousAggregate(Ty, Base, Members);
|
||||||
DEBUG(dbgs() << "isHA: " << result << " "; Ty->dump(); dbgs() << "\n");
|
DEBUG(dbgs() << "isHA: " << result << " "; Ty->dump());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user