diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 08:24:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 08:24:36 +0000 |
commit | 12368685d840dd4a0dfffba8cc1fe13a09f780f3 (patch) | |
tree | 04987136e5abdc1b02b4d605636e7d4cdec86a1b /llvm/lib/Analysis/CFGPrinter.cpp | |
parent | cd51ea510af48e4a323381beb2e733968c080b45 (diff) | |
download | bcm5719-llvm-12368685d840dd4a0dfffba8cc1fe13a09f780f3.tar.gz bcm5719-llvm-12368685d840dd4a0dfffba8cc1fe13a09f780f3.zip |
Switch to getNameStr().
llvm-svn: 76962
Diffstat (limited to 'llvm/lib/Analysis/CFGPrinter.cpp')
-rw-r--r-- | llvm/lib/Analysis/CFGPrinter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/CFGPrinter.cpp b/llvm/lib/Analysis/CFGPrinter.cpp index 8ada5a3f74c..73f50d741c6 100644 --- a/llvm/lib/Analysis/CFGPrinter.cpp +++ b/llvm/lib/Analysis/CFGPrinter.cpp @@ -35,14 +35,14 @@ namespace llvm { template<> struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits { static std::string getGraphName(const Function *F) { - return "CFG for '" + F->getName() + "' function"; + return "CFG for '" + F->getNameStr() + "' function"; } static std::string getNodeLabel(const BasicBlock *Node, const Function *Graph, bool ShortNames) { if (ShortNames && !Node->getName().empty()) - return Node->getName() + ":"; + return Node->getNameStr() + ":"; std::ostringstream Out; if (ShortNames) { @@ -136,7 +136,7 @@ namespace { explicit CFGPrinter(void *pid) : FunctionPass(pid) {} virtual bool runOnFunction(Function &F) { - std::string Filename = "cfg." + F.getName() + ".dot"; + std::string Filename = "cfg." + F.getNameStr() + ".dot"; cerr << "Writing '" << Filename << "'..."; std::ofstream File(Filename.c_str()); @@ -166,7 +166,7 @@ namespace { CFGOnlyPrinter() : FunctionPass(&ID) {} explicit CFGOnlyPrinter(void *pid) : FunctionPass(pid) {} virtual bool runOnFunction(Function &F) { - std::string Filename = "cfg." + F.getName() + ".dot"; + std::string Filename = "cfg." + F.getNameStr() + ".dot"; cerr << "Writing '" << Filename << "'..."; std::ofstream File(Filename.c_str()); @@ -196,7 +196,7 @@ P2("dot-cfg-only", /// being a 'dot' and 'gv' program in your path. /// void Function::viewCFG() const { - ViewGraph(this, "cfg" + getName()); + ViewGraph(this, "cfg" + getNameStr()); } /// viewCFGOnly - This function is meant for use from the debugger. It works @@ -205,7 +205,7 @@ void Function::viewCFG() const { /// his can make the graph smaller. /// void Function::viewCFGOnly() const { - ViewGraph(this, "cfg" + getName(), true); + ViewGraph(this, "cfg" + getNameStr(), true); } FunctionPass *llvm::createCFGPrinterPass () { |