mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 18:28:29 +00:00
Missed some users of Value::getNameStr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
870b3b2dd4
commit
2774dc085d
@ -681,7 +681,7 @@ inline raw_ostream &operator<<(raw_ostream &OS, const RegionNode &Node) {
|
||||
if (Node.isSubRegion())
|
||||
return OS << Node.getNodeAs<Region>()->getNameStr();
|
||||
else
|
||||
return OS << Node.getNodeAs<BasicBlock>()->getNameStr();
|
||||
return OS << Node.getNodeAs<BasicBlock>()->getName();
|
||||
}
|
||||
} // End llvm namespace
|
||||
#endif
|
||||
|
@ -186,18 +186,16 @@ std::string Region::getNameStr() const {
|
||||
raw_string_ostream OS(entryName);
|
||||
|
||||
WriteAsOperand(OS, getEntry(), false);
|
||||
entryName = OS.str();
|
||||
} else
|
||||
entryName = getEntry()->getNameStr();
|
||||
entryName = getEntry()->getName();
|
||||
|
||||
if (getExit()) {
|
||||
if (getExit()->getName().empty()) {
|
||||
raw_string_ostream OS(exitName);
|
||||
|
||||
WriteAsOperand(OS, getExit(), false);
|
||||
exitName = OS.str();
|
||||
} else
|
||||
exitName = getExit()->getNameStr();
|
||||
exitName = getExit()->getName();
|
||||
} else
|
||||
exitName = "<Function Return>";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user