[SCEV] Add and use SCEVConstant::getAPInt; NFCI
[oota-llvm.git] / include / llvm / Analysis / ScalarEvolutionExpressions.h
index b55ba22a6342f42e38b11af518ce4a049817ff23..16992680577c155dcd86863a48a665768a2c5427 100644 (file)
@@ -43,6 +43,7 @@ namespace llvm {
       SCEV(ID, scConstant), V(v) {}
   public:
     ConstantInt *getValue() const { return V; }
+    const APInt &getAPInt() const { return getValue()->getValue(); }
 
     Type *getType() const { return V->getType(); }