mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +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;
|
||||
|
||||
namespace llvm {
|
||||
TEMPLATE_INSTANTIATION(class DomTreeNodeBase<MachineBasicBlock>);
|
||||
TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>);
|
||||
}
|
||||
|
||||
char MachineDominatorTree::ID = 0;
|
||||
|
||||
|
@ -19,12 +19,14 @@
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace llvm {
|
||||
#define MLB class LoopBase<MachineBasicBlock, MachineLoop>
|
||||
TEMPLATE_INSTANTIATION(MLB);
|
||||
#undef MLB
|
||||
#define MLIB class LoopInfoBase<MachineBasicBlock, MachineLoop>
|
||||
TEMPLATE_INSTANTIATION(MLIB);
|
||||
#undef MLIB
|
||||
}
|
||||
|
||||
char MachineLoopInfo::ID = 0;
|
||||
static RegisterPass<MachineLoopInfo>
|
||||
|
Loading…
Reference in New Issue
Block a user