summaryrefslogtreecommitdiff
path: root/include/llvm/Constant.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-01 18:11:50 +0000
committerChris Lattner <sabre@nondot.org>2009-11-01 18:11:50 +0000
commit4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a (patch)
treef363990ceb57c9d4f1282fb1c3595fa9e155209e /include/llvm/Constant.h
parent076124ef26ff67f88663bd11f3b4d6b3d3bb3a9d (diff)
downloadllvm-4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a.tar.gz
llvm-4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a.tar.bz2
llvm-4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a.tar.xz
the verifier shouldn't modify the IR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constant.h')
-rw-r--r--include/llvm/Constant.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index bcaa56e390..8072fd9f49 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,