mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
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
412e9dc6fc
commit
4f2fc40ae8
@ -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
Block a user