mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Add comment to clarify what MachineConstantPoolEntry::isMachineConstantPoolEntry() means.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128204 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -80,7 +80,7 @@ public:
|
|||||||
} Val;
|
} Val;
|
||||||
|
|
||||||
/// The required alignment for this entry. The top bit is set when Val is
|
/// The required alignment for this entry. The top bit is set when Val is
|
||||||
/// a MachineConstantPoolValue.
|
/// a target specific MachineConstantPoolValue.
|
||||||
unsigned Alignment;
|
unsigned Alignment;
|
||||||
|
|
||||||
MachineConstantPoolEntry(const Constant *V, unsigned A)
|
MachineConstantPoolEntry(const Constant *V, unsigned A)
|
||||||
@ -93,6 +93,9 @@ public:
|
|||||||
Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1);
|
Alignment |= 1U << (sizeof(unsigned)*CHAR_BIT-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// isMachineConstantPoolEntry - Return true if the MachineConstantPoolEntry
|
||||||
|
/// is indeed a target specific constantpool entry, not a wrapper over a
|
||||||
|
/// Constant.
|
||||||
bool isMachineConstantPoolEntry() const {
|
bool isMachineConstantPoolEntry() const {
|
||||||
return (int)Alignment < 0;
|
return (int)Alignment < 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user