Merging r258416 and r258428:
[oota-llvm.git] / include / llvm / MC / MCAsmBackend.h
index 2bfad2d355b87d6d79213f6a4dd0300c2311e2fd..51312ff80447e3b88cde5c6716359cd0a6819066 100644 (file)
@@ -67,6 +67,11 @@ public:
   /// Get the number of target specific fixup kinds.
   virtual unsigned getNumFixupKinds() const = 0;
 
+  /// Map a relocation name used in .reloc to a fixup kind.
+  /// Returns true and sets MappedKind if Name is successfully mapped.
+  /// Otherwise returns false and leaves MappedKind unchanged.
+  virtual bool getFixupKind(StringRef Name, MCFixupKind &MappedKind) const;
+
   /// Get information on a fixup kind.
   virtual const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const;