mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
in builds without asserts we do not need to allocate the Next pointer in "ghostly" sentinels
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,7 +26,7 @@ class MachineFunction;
|
||||
template <>
|
||||
struct ilist_traits<MachineInstr> : public ilist_default_traits<MachineInstr> {
|
||||
private:
|
||||
mutable ilist_node<MachineInstr> Sentinel;
|
||||
mutable ILIST_NODE<MachineInstr> Sentinel;
|
||||
|
||||
// this is only set by the MachineBasicBlock owning the LiveList
|
||||
friend class MachineBasicBlock;
|
||||
|
||||
@@ -37,7 +37,7 @@ class TargetMachine;
|
||||
template <>
|
||||
struct ilist_traits<MachineBasicBlock>
|
||||
: public ilist_default_traits<MachineBasicBlock> {
|
||||
mutable ilist_node<MachineBasicBlock> Sentinel;
|
||||
mutable ILIST_NODE<MachineBasicBlock> Sentinel;
|
||||
public:
|
||||
MachineBasicBlock *createSentinel() const {
|
||||
return static_cast<MachineBasicBlock*>(&Sentinel);
|
||||
|
||||
@@ -39,7 +39,7 @@ class FunctionLoweringInfo;
|
||||
|
||||
template<> struct ilist_traits<SDNode> : public ilist_default_traits<SDNode> {
|
||||
private:
|
||||
mutable ilist_node<SDNode> Sentinel;
|
||||
mutable ILIST_NODE<SDNode> Sentinel;
|
||||
public:
|
||||
SDNode *createSentinel() const {
|
||||
return static_cast<SDNode*>(&Sentinel);
|
||||
|
||||
Reference in New Issue
Block a user