summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-05 13:30:28 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-05 13:30:28 +0000
commit9ad44629c3b9537eb66c96aab1cb667c721dc5ec (patch)
treeb7819bf149749937300c284f55b2b59938ab4e46
parent3ec1bf240d4abb4aebe20a7608ab7ebbfe68cbea (diff)
downloadbcm5719-llvm-9ad44629c3b9537eb66c96aab1cb667c721dc5ec.tar.gz
bcm5719-llvm-9ad44629c3b9537eb66c96aab1cb667c721dc5ec.zip
Make a few headers standalone. Plus, add a missing "template" keyword
that Clang diagnoses but GCC does not. llvm-svn: 86130
-rw-r--r--llvm/include/llvm/Support/Format.h1
-rw-r--r--llvm/include/llvm/Support/LeakDetector.h1
-rw-r--r--llvm/include/llvm/Support/OutputBuffer.h1
-rw-r--r--llvm/include/llvm/Support/PassNameParser.h1
-rw-r--r--llvm/include/llvm/Support/RecyclingAllocator.h2
5 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Format.h b/llvm/include/llvm/Support/Format.h
index df03f66ddc7..340f51735e8 100644
--- a/llvm/include/llvm/Support/Format.h
+++ b/llvm/include/llvm/Support/Format.h
@@ -23,6 +23,7 @@
#ifndef LLVM_SUPPORT_FORMAT_H
#define LLVM_SUPPORT_FORMAT_H
+#include <cassert>
#include <cstdio>
#ifdef WIN32
#define snprintf _snprintf
diff --git a/llvm/include/llvm/Support/LeakDetector.h b/llvm/include/llvm/Support/LeakDetector.h
index 7dbfdbf3d52..501a9db72c1 100644
--- a/llvm/include/llvm/Support/LeakDetector.h
+++ b/llvm/include/llvm/Support/LeakDetector.h
@@ -26,6 +26,7 @@
namespace llvm {
+class LLVMContext;
class Value;
struct LeakDetector {
diff --git a/llvm/include/llvm/Support/OutputBuffer.h b/llvm/include/llvm/Support/OutputBuffer.h
index 1adff2d2705..6b98e99e28e 100644
--- a/llvm/include/llvm/Support/OutputBuffer.h
+++ b/llvm/include/llvm/Support/OutputBuffer.h
@@ -14,6 +14,7 @@
#ifndef LLVM_SUPPORT_OUTPUTBUFFER_H
#define LLVM_SUPPORT_OUTPUTBUFFER_H
+#include <cassert>
#include <string>
#include <vector>
diff --git a/llvm/include/llvm/Support/PassNameParser.h b/llvm/include/llvm/Support/PassNameParser.h
index 66ce3f2e208..ea4fe01f78d 100644
--- a/llvm/include/llvm/Support/PassNameParser.h
+++ b/llvm/include/llvm/Support/PassNameParser.h
@@ -25,6 +25,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/Pass.h"
#include <algorithm>
#include <cstring>
diff --git a/llvm/include/llvm/Support/RecyclingAllocator.h b/llvm/include/llvm/Support/RecyclingAllocator.h
index 8e957f1b264..609193ffd76 100644
--- a/llvm/include/llvm/Support/RecyclingAllocator.h
+++ b/llvm/include/llvm/Support/RecyclingAllocator.h
@@ -41,7 +41,7 @@ public:
/// SubClass. The storage may be either newly allocated or recycled.
///
template<class SubClass>
- SubClass *Allocate() { return Base.Allocate<SubClass>(Allocator); }
+ SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); }
T *Allocate() { return Base.Allocate(Allocator); }
OpenPOWER on IntegriCloud