[llvm] r194495 - whitespace
Andrew Trick
atrick at apple.com
Tue Nov 12 10:06:07 PST 2013
Author: atrick
Date: Tue Nov 12 12:06:06 2013
New Revision: 194495
URL: http://llvm.org/viewvc/llvm-project?rev=194495&view=rev
Log:
whitespace
Modified:
llvm/trunk/include/llvm/Analysis/CFGPrinter.h
Modified: llvm/trunk/include/llvm/Analysis/CFGPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/CFGPrinter.h?rev=194495&r1=194494&r2=194495&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/CFGPrinter.h (original)
+++ llvm/trunk/include/llvm/Analysis/CFGPrinter.h Tue Nov 12 12:06:06 2013
@@ -44,7 +44,7 @@ struct DOTGraphTraits<const Function*> :
return OS.str();
}
- static std::string getCompleteNodeLabel(const BasicBlock *Node,
+ static std::string getCompleteNodeLabel(const BasicBlock *Node,
const Function *) {
std::string Str;
raw_string_ostream OS(Str);
@@ -86,20 +86,20 @@ struct DOTGraphTraits<const Function*> :
if (const BranchInst *BI = dyn_cast<BranchInst>(Node->getTerminator()))
if (BI->isConditional())
return (I == succ_begin(Node)) ? "T" : "F";
-
+
// Label source of switch edges with the associated value.
if (const SwitchInst *SI = dyn_cast<SwitchInst>(Node->getTerminator())) {
unsigned SuccNo = I.getSuccessorIndex();
if (SuccNo == 0) return "def";
-
+
std::string Str;
raw_string_ostream OS(Str);
SwitchInst::ConstCaseIt Case =
- SwitchInst::ConstCaseIt::fromSuccessorIndex(SI, SuccNo);
+ SwitchInst::ConstCaseIt::fromSuccessorIndex(SI, SuccNo);
OS << Case.getCaseValue()->getValue();
return OS.str();
- }
+ }
return "";
}
};
More information about the llvm-commits
mailing list