Add some missing includes for various standard library implementations.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 18 Apr 2014 16:46:29 +0000 (16:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 18 Apr 2014 16:46:29 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206616 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCModule.h
include/llvm/Support/LineIterator.h

index 65351ecf25411f0694370afdb59a9f81da1edcc0..aa389cbb0b2beaf0d6d80d9808dc3d411242c019 100644 (file)
@@ -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 {
index e4f9a1c3c1a114255528c425054ef8b2bbda5f37..e2a3179db1720ebfeeec6b32315920dcb35e12a7 100644 (file)
@@ -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;