Drop prelink support.
[oota-llvm.git] / include / llvm / IR / Constant.h
index 555efc41c06c9fd3015c0a1219c53a7801cff6f7..bb88905aa57a0490bbf4189d2d37b5acacf26b1b 100644 (file)
@@ -86,26 +86,12 @@ public:
   /// exprs and other dangling things.
   bool isConstantUsed() const;
 
-  enum PossibleRelocationsTy {
-    NoRelocation = 0,
-    LocalRelocation = 1,
-    GlobalRelocations = 2
-  };
-
   /// This method classifies the entry according to whether or not it may
   /// generate a relocation entry.  This must be conservative, so if it might
-  /// codegen to a relocatable entry, it should say so.  The return values are:
-  ///
-  ///  NoRelocation: This constant pool entry is guaranteed to never have a
-  ///     relocation applied to it (because it holds a simple constant like
-  ///     '4').
-  ///  LocalRelocation: This entry has relocations, but the entries are
-  ///     guaranteed to be resolvable by the static linker, so the dynamic
-  ///     linker will never see them.
-  ///  GlobalRelocations: This entry may have arbitrary relocations.
+  /// codegen to a relocatable entry, it should say so.
   ///
   /// FIXME: This really should not be in IR.
-  PossibleRelocationsTy getRelocationInfo() const;
+  bool needsRelocation() const;
 
   /// getAggregateElement - For aggregates (struct/array/vector) return the
   /// constant that corresponds to the specified element if possible, or null if