From afe15815571b34d7d53e5a005240686089b18361 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 8 Mar 2007 00:59:12 +0000 Subject: Added ContainsRelocations() to check if a constant might only be resolvable at load time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35014 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Constant.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/llvm/Constant.h') 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) { -- cgit v1.2.3