diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-03-12 20:14:17 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-03-12 20:14:17 +0000 |
commit | 4207c6759c040ca9c26fd305b1e62d5c68a44fb1 (patch) | |
tree | bd8a82a31b229d1a27a158b93a13d15fbd9d2733 /include | |
parent | 02da814a94c043452e3ad10915e8ba366218e925 (diff) | |
download | llvm-4207c6759c040ca9c26fd305b1e62d5c68a44fb1.tar.gz llvm-4207c6759c040ca9c26fd305b1e62d5c68a44fb1.tar.bz2 llvm-4207c6759c040ca9c26fd305b1e62d5c68a44fb1.tar.xz |
llvm-profdata: Use the Profile library, implement show and generate
This replaces the llvm-profdata tool with a version that uses the
recently introduced Profile library. The new tool has the ability to
generate and summarize profdata files as well as merging them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/LineIterator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Support/LineIterator.h b/include/llvm/Support/LineIterator.h index 861c19881f..92a9cc5c57 100644 --- a/include/llvm/Support/LineIterator.h +++ b/include/llvm/Support/LineIterator.h @@ -56,6 +56,7 @@ public: /// \brief Get the current line as a \c StringRef. StringRef operator*() const { return CurrentLine; } + const StringRef *operator->() const { return &CurrentLine; } friend bool operator==(const line_iterator &LHS, const line_iterator &RHS) { return LHS.Buffer == RHS.Buffer && |