[llvm] r206616 - Add some missing includes for various standard library implementations.

Benjamin Kramer benny.kra at googlemail.com
Fri Apr 18 09:46:30 PDT 2014


Author: d0k
Date: Fri Apr 18 11:46:29 2014
New Revision: 206616

URL: http://llvm.org/viewvc/llvm-project?rev=206616&view=rev
Log:
Add some missing includes for various standard library implementations.

Modified:
    llvm/trunk/include/llvm/MC/MCModule.h
    llvm/trunk/include/llvm/Support/LineIterator.h

Modified: llvm/trunk/include/llvm/MC/MCModule.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCModule.h?rev=206616&r1=206615&r2=206616&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCModule.h (original)
+++ llvm/trunk/include/llvm/MC/MCModule.h Fri Apr 18 11:46:29 2014
@@ -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 {

Modified: llvm/trunk/include/llvm/Support/LineIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/LineIterator.h?rev=206616&r1=206615&r2=206616&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/LineIterator.h (original)
+++ llvm/trunk/include/llvm/Support/LineIterator.h Fri Apr 18 11:46:29 2014
@@ -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;
 





More information about the llvm-commits mailing list