aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-09 02:10:15 +0000
committerChris Lattner <sabre@nondot.org>2006-02-09 02:10:15 +0000
commitef3640aded552279f65bd6d18633e15ffb245157 (patch)
tree3ec6ad7b4abb25875f4afb02a99a24b57035b06c
parent34167215a8da717b21e44f1b834dc34d15279bf1 (diff)
Add a comment: value is log2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26068 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 1e8f8d8f2d..1eeb7b31e5 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1074,6 +1074,9 @@ protected:
public:
Constant *get() const { return C; }
+
+ // Return the alignment of this constant pool object, which is either 0 (for
+ // default alignment) or log2 of the desired value.
unsigned getAlignment() const { return Alignment; }
static bool classof(const ConstantPoolSDNode *) { return true; }