mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 23:19:03 +00:00
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -44,7 +44,7 @@ struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {
|
|||||||
return OS.str();
|
return OS.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string getCompleteNodeLabel(const BasicBlock *Node,
|
static std::string getCompleteNodeLabel(const BasicBlock *Node,
|
||||||
const Function *) {
|
const Function *) {
|
||||||
std::string Str;
|
std::string Str;
|
||||||
raw_string_ostream OS(Str);
|
raw_string_ostream OS(Str);
|
||||||
@@ -86,20 +86,20 @@ struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {
|
|||||||
if (const BranchInst *BI = dyn_cast<BranchInst>(Node->getTerminator()))
|
if (const BranchInst *BI = dyn_cast<BranchInst>(Node->getTerminator()))
|
||||||
if (BI->isConditional())
|
if (BI->isConditional())
|
||||||
return (I == succ_begin(Node)) ? "T" : "F";
|
return (I == succ_begin(Node)) ? "T" : "F";
|
||||||
|
|
||||||
// Label source of switch edges with the associated value.
|
// Label source of switch edges with the associated value.
|
||||||
if (const SwitchInst *SI = dyn_cast<SwitchInst>(Node->getTerminator())) {
|
if (const SwitchInst *SI = dyn_cast<SwitchInst>(Node->getTerminator())) {
|
||||||
unsigned SuccNo = I.getSuccessorIndex();
|
unsigned SuccNo = I.getSuccessorIndex();
|
||||||
|
|
||||||
if (SuccNo == 0) return "def";
|
if (SuccNo == 0) return "def";
|
||||||
|
|
||||||
std::string Str;
|
std::string Str;
|
||||||
raw_string_ostream OS(Str);
|
raw_string_ostream OS(Str);
|
||||||
SwitchInst::ConstCaseIt Case =
|
SwitchInst::ConstCaseIt Case =
|
||||||
SwitchInst::ConstCaseIt::fromSuccessorIndex(SI, SuccNo);
|
SwitchInst::ConstCaseIt::fromSuccessorIndex(SI, SuccNo);
|
||||||
OS << Case.getCaseValue()->getValue();
|
OS << Case.getCaseValue()->getValue();
|
||||||
return OS.str();
|
return OS.str();
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user