Skip to content
Snippets Groups Projects
Commit 962c4159 authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

Fixed the error in build regarding calling non-static function. Also, the dot...

Fixed the error in build regarding calling non-static function. Also, the dot files are now written from the current directory
parent fdd55415
No related branches found
No related tags found
No related merge requests found
......@@ -428,14 +428,14 @@ struct DOTGraphTraits<DFGraph*> : public DefaultDOTGraphTraits {
return N->getFuncPointer()->getName();
}
void addCustomGraphFeatures(DFGraph* G, GraphWriter<DFGraph*> &GW) {
static void addCustomGraphFeatures(DFGraph* G, GraphWriter<DFGraph*> &GW) {
}
};
void viewDFGraph(DFGraph *G) {
//llvm::WriteGraph(G, "DataflowGrpah");
//llvm::ViewGraph(G, "DataflowGraph");
llvm::WriteGraph(G, "DataflowGrpah");
llvm::ViewGraph(G, "DataflowGraph");
}
} // End llvm namespace
......
......@@ -323,7 +323,12 @@ template<typename GraphType>
sys::Path WriteGraph(const GraphType &G, const Twine &Name,
bool ShortNames = false, const Twine &Title = "") {
std::string ErrMsg;
#define VISC
#ifdef VISC
sys::Path Filename = sys::Path::GetCurrentDirectory();
#else
sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg);
#endif
if (Filename.isEmpty()) {
errs() << "Error: " << ErrMsg << "\n";
return Filename;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment