summaryrefslogtreecommitdiffstats
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
commit753a7ab8c51f1e12a1335e80212dd84182ff5026 (patch)
tree01cc5e27f92e0bab34a10edab1feb3fb1b5771d0
parente677b8dab13649541633bd120c5264fd91154549 (diff)
downloadbcm5719-llvm-753a7ab8c51f1e12a1335e80212dd84182ff5026.tar.gz
bcm5719-llvm-753a7ab8c51f1e12a1335e80212dd84182ff5026.zip
Add some missing includes for various standard library implementations.
llvm-svn: 206616
-rw-r--r--llvm/include/llvm/MC/MCModule.h1
-rw-r--r--llvm/include/llvm/Support/LineIterator.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCModule.h b/llvm/include/llvm/MC/MCModule.h
index 65351ecf254..aa389cbb0b2 100644
--- a/llvm/include/llvm/MC/MCModule.h
+++ b/llvm/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/llvm/include/llvm/Support/LineIterator.h b/llvm/include/llvm/Support/LineIterator.h
index e4f9a1c3c1a..e2a3179db17 100644
--- a/llvm/include/llvm/Support/LineIterator.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud