summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-01-29 06:08:02 +0000
committerCraig Topper <craig.topper@gmail.com>2017-01-29 06:08:02 +0000
commit135da1faf56467a689702f44f60cf2a0d3a992bb (patch)
tree62577d240a288cf2e0ed0aad13649511b24d3de1 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentb130469bc9d569fdc25165cf6e370af5d081d234 (diff)
downloadbcm5719-llvm-135da1faf56467a689702f44f60cf2a0d3a992bb.tar.gz
bcm5719-llvm-135da1faf56467a689702f44f60cf2a0d3a992bb.zip
[SelectionDAG] Make SDNode::getConstantOperandVal an inline method.
It's operation already exists manually in many places without using the method. llvm-svn: 293421
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 5a82ff1e3ab..4227aa7ab12 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -7159,11 +7159,6 @@ bool SDNode::hasPredecessor(const SDNode *N) const {
return hasPredecessorHelper(N, Visited, Worklist);
}
-uint64_t SDNode::getConstantOperandVal(unsigned Num) const {
- assert(Num < NumOperands && "Invalid child # of SDNode!");
- return cast<ConstantSDNode>(OperandList[Num])->getZExtValue();
-}
-
const SDNodeFlags *SDNode::getFlags() const {
if (auto *FlagsNode = dyn_cast<BinaryWithFlagsSDNode>(this))
return &FlagsNode->Flags;
OpenPOWER on IntegriCloud