Rename ConstantSDNode::getValue to getZExtValue, for consistency
with ConstantInt. This led to fixing a bug in TargetLowering.cpp
using getValue instead of getAPIntValue.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56159 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp b/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
index 4df2277..3fc7c72 100644
--- a/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
+++ b/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
@@ -141,10 +141,11 @@
 
   if (N.getOpcode() == ISD::ADD) {
     GC = dyn_cast<ConstantSDNode>(N.getOperand(1));
-    Offset = CurDAG->getTargetConstant((unsigned char)GC->getValue(), MVT::i8);
+    Offset = CurDAG->getTargetConstant((unsigned char)GC->getZExtValue(),
+                                       MVT::i8);
     if ((GA = dyn_cast<GlobalAddressSDNode>(N.getOperand(0)))) {
       Base = CurDAG->getTargetGlobalAddress(GA->getGlobal(), MVT::i16, 
-                                            GC->getValue());
+                                            GC->getZExtValue());
       return true;
     }
     else if (FrameIndexSDNode *FIN