X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FConstant.h;h=8072fd9f498a1bbe6ba967bc28e638c5218533c7;hb=9e6d1d1f5034347d237941f1bf08fba5c1583cd3;hp=bcaa56e3902b10e0ea8c6bd84eed3d4cd50c850c;hpb=0eeb913aa17a68b1f2963b02ca1d68f09dba0b78;p=oota-llvm.git diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index bcaa56e3902..8072fd9f498 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -65,6 +65,10 @@ public: /// true for things like constant expressions that could divide by zero. bool canTrap() const; + /// isConstantUsed - Return true if the constant has users other than constant + /// exprs and other dangling things. + bool isConstantUsed() const; + enum PossibleRelocationsTy { NoRelocation = 0, LocalRelocation = 1,