Add the getRelocationType method that I forgot
authorChris Lattner <sabre@nondot.org>
Sat, 20 Nov 2004 03:43:50 +0000 (03:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 20 Nov 2004 03:43:50 +0000 (03:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18033 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineRelocation.h

index 71bccad5c2536325858ef092d023d017e4030bd1..96d6c688a772554a0bfab8c42137c20462eeeda3 100644 (file)
@@ -66,6 +66,12 @@ public:
     return OffsetTypeExternal & ((1 << 24)-1);
   }
 
+  /// getRelocationType - Return the target-specific relocation ID for this
+  /// relocation.
+  unsigned getRelocationType() const {
+    return OffsetTypeExternal >> 25;
+  }
+
   /// getConstantVal - Get the constant value associated with this relocation.
   /// This is often an offset from the symbol.
   ///