[llvm-commits] [llvm] r86130 - in /llvm/trunk/include/llvm/Support: Format.h LeakDetector.h OutputBuffer.h PassNameParser.h RecyclingAllocator.h

Douglas Gregor dgregor at apple.com
Thu Nov 5 05:30:28 PST 2009


Author: dgregor
Date: Thu Nov  5 07:30:28 2009
New Revision: 86130

URL: http://llvm.org/viewvc/llvm-project?rev=86130&view=rev
Log:
Make a few headers standalone. Plus, add a missing "template" keyword
that Clang diagnoses but GCC does not.

Modified:
    llvm/trunk/include/llvm/Support/Format.h
    llvm/trunk/include/llvm/Support/LeakDetector.h
    llvm/trunk/include/llvm/Support/OutputBuffer.h
    llvm/trunk/include/llvm/Support/PassNameParser.h
    llvm/trunk/include/llvm/Support/RecyclingAllocator.h

Modified: llvm/trunk/include/llvm/Support/Format.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Format.h?rev=86130&r1=86129&r2=86130&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/Format.h (original)
+++ llvm/trunk/include/llvm/Support/Format.h Thu Nov  5 07:30:28 2009
@@ -23,6 +23,7 @@
 #ifndef LLVM_SUPPORT_FORMAT_H
 #define LLVM_SUPPORT_FORMAT_H
 
+#include <cassert>
 #include <cstdio>
 #ifdef WIN32
 #define snprintf _snprintf

Modified: llvm/trunk/include/llvm/Support/LeakDetector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/LeakDetector.h?rev=86130&r1=86129&r2=86130&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/LeakDetector.h (original)
+++ llvm/trunk/include/llvm/Support/LeakDetector.h Thu Nov  5 07:30:28 2009
@@ -26,6 +26,7 @@
 
 namespace llvm {
 
+class LLVMContext;
 class Value;
 
 struct LeakDetector {

Modified: llvm/trunk/include/llvm/Support/OutputBuffer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/OutputBuffer.h?rev=86130&r1=86129&r2=86130&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/OutputBuffer.h (original)
+++ llvm/trunk/include/llvm/Support/OutputBuffer.h Thu Nov  5 07:30:28 2009
@@ -14,6 +14,7 @@
 #ifndef LLVM_SUPPORT_OUTPUTBUFFER_H
 #define LLVM_SUPPORT_OUTPUTBUFFER_H
 
+#include <cassert>
 #include <string>
 #include <vector>
 

Modified: llvm/trunk/include/llvm/Support/PassNameParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/PassNameParser.h?rev=86130&r1=86129&r2=86130&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/PassNameParser.h (original)
+++ llvm/trunk/include/llvm/Support/PassNameParser.h Thu Nov  5 07:30:28 2009
@@ -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>

Modified: llvm/trunk/include/llvm/Support/RecyclingAllocator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/RecyclingAllocator.h?rev=86130&r1=86129&r2=86130&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/RecyclingAllocator.h (original)
+++ llvm/trunk/include/llvm/Support/RecyclingAllocator.h Thu Nov  5 07:30:28 2009
@@ -41,7 +41,7 @@
   /// 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); }
 





More information about the llvm-commits mailing list