forked from OSchip/llvm-project
Make a few headers standalone. Plus, add a missing "template" keyword
that Clang diagnoses but GCC does not. llvm-svn: 86130
This commit is contained in:
parent
3ec1bf240d
commit
9ad44629c3
|
@ -23,6 +23,7 @@
|
|||
#ifndef LLVM_SUPPORT_FORMAT_H
|
||||
#define LLVM_SUPPORT_FORMAT_H
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#ifdef WIN32
|
||||
#define snprintf _snprintf
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class LLVMContext;
|
||||
class Value;
|
||||
|
||||
struct LeakDetector {
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#ifndef LLVM_SUPPORT_OUTPUTBUFFER_H
|
||||
#define LLVM_SUPPORT_OUTPUTBUFFER_H
|
||||
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue