[llvm-commits] CVS: llvm/include/llvm/Constant.h

Evan Cheng evan.cheng at apple.com
Wed Mar 7 16:59:35 PST 2007



Changes in directory llvm/include/llvm:

Constant.h updated: 1.34 -> 1.35
---
Log message:

Added ContainsRelocations() to check if a constant might only be resolvable at load time.

---
Diffs of the changes:  (+4 -0)

 Constant.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/Constant.h
diff -u llvm/include/llvm/Constant.h:1.34 llvm/include/llvm/Constant.h:1.35
--- llvm/include/llvm/Constant.h:1.34	Sun Feb 11 23:18:08 2007
+++ llvm/include/llvm/Constant.h	Wed Mar  7 18:59:12 2007
@@ -59,6 +59,10 @@
   /// 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) {






More information about the llvm-commits mailing list