forked from OSchip/llvm-project
Follow up a3936a6c19
to work around an old compiler bug
Old versions of gcc want template specialisations to happen within the namespace where the template lives; this is still present in gcc 5.1, which we officially support, so it has to be worked around.
This commit is contained in:
parent
d1e0f02e0b
commit
e845ca2ff1
|
@ -1972,11 +1972,13 @@ using MachineDomTreeBase = DomTreeBase<MachineBasicBlock>::NodeType;
|
||||||
using MachineDomTreeChildGetter =
|
using MachineDomTreeChildGetter =
|
||||||
typename IDFCalculatorDetail::ChildrenGetterTy<MachineDomTreeBase, false>;
|
typename IDFCalculatorDetail::ChildrenGetterTy<MachineDomTreeBase, false>;
|
||||||
|
|
||||||
|
namespace IDFCalculatorDetail {
|
||||||
template <>
|
template <>
|
||||||
typename MachineDomTreeChildGetter::ChildrenTy
|
typename MachineDomTreeChildGetter::ChildrenTy
|
||||||
MachineDomTreeChildGetter::get(const NodeRef &N) {
|
MachineDomTreeChildGetter::get(const NodeRef &N) {
|
||||||
return {N->succ_begin(), N->succ_end()};
|
return {N->succ_begin(), N->succ_end()};
|
||||||
}
|
}
|
||||||
|
} // namespace IDFCalculatorDetail
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
|
||||||
void InstrRefBasedLDV::BlockPHIPlacement(
|
void InstrRefBasedLDV::BlockPHIPlacement(
|
||||||
|
|
Loading…
Reference in New Issue