forked from OSchip/llvm-project
Adapt to the DOTGraphTraits changes in LLVM.
llvm-svn: 90137
This commit is contained in:
parent
9caf3801ca
commit
9fc223a6b1
|
@ -30,8 +30,9 @@ void Stmt::viewAST() const {
|
|||
namespace llvm {
|
||||
template<>
|
||||
struct DOTGraphTraits<const Stmt*> : public DefaultDOTGraphTraits {
|
||||
static std::string getNodeLabel(const Stmt* Node, const Stmt* Graph,
|
||||
bool ShortNames) {
|
||||
DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
|
||||
|
||||
static std::string getNodeLabel(const Stmt* Node, const Stmt* Graph) {
|
||||
|
||||
#ifndef NDEBUG
|
||||
std::string OutSStr;
|
||||
|
|
|
@ -2049,8 +2049,10 @@ void CFG::viewCFG(const LangOptions &LO) const {
|
|||
namespace llvm {
|
||||
template<>
|
||||
struct DOTGraphTraits<const CFG*> : public DefaultDOTGraphTraits {
|
||||
static std::string getNodeLabel(const CFGBlock* Node, const CFG* Graph,
|
||||
bool ShortNames) {
|
||||
|
||||
DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
|
||||
|
||||
static std::string getNodeLabel(const CFGBlock* Node, const CFG* Graph) {
|
||||
|
||||
#ifndef NDEBUG
|
||||
std::string OutSStr;
|
||||
|
|
|
@ -137,8 +137,10 @@ namespace llvm {
|
|||
template <>
|
||||
struct DOTGraphTraits<CallGraph> : public DefaultDOTGraphTraits {
|
||||
|
||||
DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
|
||||
|
||||
static std::string getNodeLabel(const CallGraphNode *Node,
|
||||
const CallGraph &CG, bool ShortNames) {
|
||||
const CallGraph &CG) {
|
||||
return Node->getName();
|
||||
|
||||
}
|
||||
|
|
|
@ -2817,6 +2817,9 @@ namespace llvm {
|
|||
template<>
|
||||
struct VISIBILITY_HIDDEN DOTGraphTraits<ExplodedNode*> :
|
||||
public DefaultDOTGraphTraits {
|
||||
|
||||
DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
|
||||
|
||||
// FIXME: Since we do not cache error nodes in GRExprEngine now, this does not
|
||||
// work.
|
||||
static std::string getNodeAttributes(const ExplodedNode* N, void*) {
|
||||
|
@ -2840,7 +2843,7 @@ struct VISIBILITY_HIDDEN DOTGraphTraits<ExplodedNode*> :
|
|||
return "";
|
||||
}
|
||||
|
||||
static std::string getNodeLabel(const ExplodedNode* N, void*,bool ShortNames){
|
||||
static std::string getNodeLabel(const ExplodedNode* N, void*){
|
||||
|
||||
std::string sbuf;
|
||||
llvm::raw_string_ostream Out(sbuf);
|
||||
|
|
Loading…
Reference in New Issue