diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-03-24 06:28:45 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-03-24 06:28:45 +0000 |
| commit | e8954f1ee1252baaf53486ae5574dc42ed0724bc (patch) | |
| tree | 2597654996679bd9936afe01a52ad9fc9e307a1c | |
| parent | f098bf11991f8f98a713b1cad86c8a072b4c098b (diff) | |
| download | bcm5719-llvm-e8954f1ee1252baaf53486ae5574dc42ed0724bc.tar.gz bcm5719-llvm-e8954f1ee1252baaf53486ae5574dc42ed0724bc.zip | |
Add comment to clarify what MachineConstantPoolEntry::isMachineConstantPoolEntry() means.
llvm-svn: 128204
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineConstantPool.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineConstantPool.h b/llvm/include/llvm/CodeGen/MachineConstantPool.h index 5727321a0da..beb16a2824d 100644 --- a/llvm/include/llvm/CodeGen/MachineConstantPool.h +++ b/llvm/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; } |

