mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
Explicit template instantiations must happen in the template's immediately
enclosing namespace. Caught by clang++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c70d331151
commit
f32616e0bd
@ -17,8 +17,10 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
namespace llvm {
|
||||||
TEMPLATE_INSTANTIATION(class DomTreeNodeBase<MachineBasicBlock>);
|
TEMPLATE_INSTANTIATION(class DomTreeNodeBase<MachineBasicBlock>);
|
||||||
TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>);
|
TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>);
|
||||||
|
}
|
||||||
|
|
||||||
char MachineDominatorTree::ID = 0;
|
char MachineDominatorTree::ID = 0;
|
||||||
|
|
||||||
|
@ -19,12 +19,14 @@
|
|||||||
#include "llvm/CodeGen/Passes.h"
|
#include "llvm/CodeGen/Passes.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
namespace llvm {
|
||||||
#define MLB class LoopBase<MachineBasicBlock, MachineLoop>
|
#define MLB class LoopBase<MachineBasicBlock, MachineLoop>
|
||||||
TEMPLATE_INSTANTIATION(MLB);
|
TEMPLATE_INSTANTIATION(MLB);
|
||||||
#undef MLB
|
#undef MLB
|
||||||
#define MLIB class LoopInfoBase<MachineBasicBlock, MachineLoop>
|
#define MLIB class LoopInfoBase<MachineBasicBlock, MachineLoop>
|
||||||
TEMPLATE_INSTANTIATION(MLIB);
|
TEMPLATE_INSTANTIATION(MLIB);
|
||||||
#undef MLIB
|
#undef MLIB
|
||||||
|
}
|
||||||
|
|
||||||
char MachineLoopInfo::ID = 0;
|
char MachineLoopInfo::ID = 0;
|
||||||
static RegisterPass<MachineLoopInfo>
|
static RegisterPass<MachineLoopInfo>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user