aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGNodes.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-26 21:54:37 +0000
committerDan Gohman <gohman@apple.com>2008-09-26 21:54:37 +0000
commit7810bfed5570c192e0714a8fd0e5130a0c38dd2e (patch)
tree177764949e61ffb42778625fec8fe132db8a6b77 /include/llvm/CodeGen/SelectionDAGNodes.h
parentf2752503336b4070038a5d1727c5e6fc60cd24d2 (diff)
Rename ConstantSDNode's getSignExtended to getSExtValue, for
consistancy with ConstantInt, and re-implement it in terms of ConstantInt's getSExtValue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 1d085100db..8ab6152905 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1721,11 +1721,7 @@ public:
const ConstantInt *getConstantIntValue() const { return Value; }
const APInt &getAPIntValue() const { return Value->getValue(); }
uint64_t getZExtValue() const { return Value->getZExtValue(); }
-
- int64_t getSignExtended() const {
- unsigned Bits = getValueType(0).getSizeInBits();
- return ((int64_t)getZExtValue() << (64-Bits)) >> (64-Bits);
- }
+ int64_t getSExtValue() const { return Value->getSExtValue(); }
bool isNullValue() const { return Value->isNullValue(); }
bool isAllOnesValue() const { return Value->isAllOnesValue(); }