This is a patch to fix a compile error in STLExtras.h, and

a bug in GraphWriter.cpp.

Patch by Florian Brandner

llvm-svn: 36684
This commit is contained in:
Chris Lattner 2007-05-03 18:32:10 +00:00
parent 847f31ec25
commit 357882d27c
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public:
typedef RootIt iterator_type;
typedef mapped_iterator<RootIt, UnaryFunc> _Self;
inline RootIt &getCurrent() const { return current; }
inline const RootIt &getCurrent() const { return current; }
inline explicit mapped_iterator(const RootIt &I, UnaryFunc F)
: current(I), Fn(F) {}

View File

@ -70,6 +70,7 @@ void llvm::DisplayGraph(const sys::Path &Filename) {
sys::Path dotty(LLVM_PATH_DOTTY);
std::vector<const char*> args;
args.push_back(dotty.c_str());
args.push_back(Filename.c_str());
args.push_back(0);