mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
Make a few headers standalone. Plus, add a missing "template" keyword
that Clang diagnoses but GCC does not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e4bddf1837
commit
fbe67f85b2
@ -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