Add more methods to gather target specific elf stuff
[oota-llvm.git] / include / llvm / CodeGen / BinaryObject.h
index 0780cd6ab4f402ca2f4ca24776f77367bf7665f2..4b66fe85678cb85395cb84a76903d544075cfd70 100644 (file)
@@ -61,6 +61,11 @@ public:
     return Relocations;
   }
 
+  /// hasRelocations - Return true if 'Relocations' is not empty
+  bool hasRelocations() const {
+    return !Relocations.empty();
+  }
+
   /// emitByte - This callback is invoked when a byte needs to be
   /// written to the data stream.
   inline void emitByte(uint8_t B) {
@@ -317,6 +322,7 @@ public:
   void addRelocation(const MachineRelocation& relocation) {
     Relocations.push_back(relocation);
   }
+
 };
 
 } // end namespace llvm