aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-03 18:32:10 +0000
committerChris Lattner <sabre@nondot.org>2007-05-03 18:32:10 +0000
commit82493289e0234e0172313e845fb87306cf3687ac (patch)
treecb757c22efa555970ad6d5dc74c90619e04330ed
parentb2ef40c36f065be49aaa61a8f7ac6122070fb910 (diff)
downloadexternal_llvm-82493289e0234e0172313e845fb87306cf3687ac.zip
external_llvm-82493289e0234e0172313e845fb87306cf3687ac.tar.gz
external_llvm-82493289e0234e0172313e845fb87306cf3687ac.tar.bz2
This is a patch to fix a compile error in STLExtras.h, and
a bug in GraphWriter.cpp. Patch by Florian Brandner git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36684 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/STLExtras.h2
-rw-r--r--lib/Support/GraphWriter.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h
index af49965..14137e3 100644
--- a/include/llvm/ADT/STLExtras.h
+++ b/include/llvm/ADT/STLExtras.h
@@ -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) {}
diff --git a/lib/Support/GraphWriter.cpp b/lib/Support/GraphWriter.cpp
index 31d8d79..eab76df 100644
--- a/lib/Support/GraphWriter.cpp
+++ b/lib/Support/GraphWriter.cpp
@@ -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);