summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-03-24 06:28:45 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-03-24 06:28:45 +0000
commitacdddfedd163a868c3f4294534fc577285f42f5b (patch)
treefababaa85d4bcc3782995c8989a98f80528df684
parentd700617193f3d11deb83cd56c4ababbc8e0ea19f (diff)
downloadllvm-acdddfedd163a868c3f4294534fc577285f42f5b.tar.gz
llvm-acdddfedd163a868c3f4294534fc577285f42f5b.tar.bz2
llvm-acdddfedd163a868c3f4294534fc577285f42f5b.tar.xz
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
-rw-r--r--include/llvm/CodeGen/MachineConstantPool.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h
index 5727321a0d..beb16a2824 100644
--- a/include/llvm/CodeGen/MachineConstantPool.h
+++ b/include/llvm/CodeGen/MachineConstantPool.h
@@ -80,7 +80,7 @@ public:
} Val;
/// The required alignment for this entry. The top bit is set when Val is
- /// a MachineConstantPoolValue.
+ /// a target specific MachineConstantPoolValue.
unsigned Alignment;
MachineConstantPoolEntry(const Constant *V, unsigned A)
@@ -93,6 +93,9 @@ public:
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 {
return (int)Alignment < 0;
}