summaryrefslogtreecommitdiff
path: root/include/llvm/Constant.h
diff options
context:
space:
mode:
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 985f1908da..4b3547ebf8 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -59,6 +59,10 @@ public:
/// true for things like constant expressions that could divide by zero.
bool canTrap() const;
+ /// ContaintsRelocations - Return true if the constant value contains
+ /// relocations which cannot be resolved at compile time.
+ bool ContainsRelocations() const;
+
// Specialize get/setOperand for Constant's as their operands are always
// constants as well.
Constant *getOperand(unsigned i) {