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:
John McCall 2009-12-16 00:13:24 +00:00
parent c70d331151
commit f32616e0bd
2 changed files with 4 additions and 0 deletions

View File

@ -17,8 +17,10 @@
using namespace llvm;
namespace llvm {
TEMPLATE_INSTANTIATION(class DomTreeNodeBase<MachineBasicBlock>);
TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>);
}
char MachineDominatorTree::ID = 0;

View File

@ -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>