summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-18 16:46:29 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-18 16:46:29 +0000
commitf2896111b5da0a2491c9aa1d5950b14ec8663df2 (patch)
tree36138794846d688ff34a3868c9aa93304ab4878d /include
parent98b539ae65afeda465ea14da246da4c03edbb9ca (diff)
downloadllvm-f2896111b5da0a2491c9aa1d5950b14ec8663df2.tar.gz
llvm-f2896111b5da0a2491c9aa1d5950b14ec8663df2.tar.bz2
llvm-f2896111b5da0a2491c9aa1d5950b14ec8663df2.tar.xz
Add some missing includes for various standard library implementations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCModule.h1
-rw-r--r--include/llvm/Support/LineIterator.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/MCModule.h b/include/llvm/MC/MCModule.h
index 65351ecf25..aa389cbb0b 100644
--- a/include/llvm/MC/MCModule.h
+++ b/include/llvm/MC/MCModule.h
@@ -18,6 +18,7 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/DataTypes.h"
+#include <memory>
#include <vector>
namespace llvm {
diff --git a/include/llvm/Support/LineIterator.h b/include/llvm/Support/LineIterator.h
index e4f9a1c3c1..e2a3179db1 100644
--- a/include/llvm/Support/LineIterator.h
+++ b/include/llvm/Support/LineIterator.h
@@ -28,7 +28,7 @@ class MemoryBuffer;
///
/// Note that this iterator requires the buffer to be nul terminated.
class line_iterator
- : public std::iterator<std::forward_iterator_tag, StringRef, ptrdiff_t> {
+ : public std::iterator<std::forward_iterator_tag, StringRef> {
const MemoryBuffer *Buffer;
char CommentMarker;