summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitea25aba38219ca11875e0924f11e29e07428cbfd (patch)
treee1fe341fa9abf8a00360d8464cfed6be26eb9d89 /llvm
parent6dc90ca172950489fc42a0c2e5373dcb80927448 (diff)
downloadbcm5719-llvm-ea25aba38219ca11875e0924f11e29e07428cbfd.tar.gz
bcm5719-llvm-ea25aba38219ca11875e0924f11e29e07428cbfd.zip
Add a comment: value is log2
llvm-svn: 26068
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAGNodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 1e8f8d8f2dc..1eeb7b31e50 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/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; }
OpenPOWER on IntegriCloud