[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineRelocation.h

Chris Lattner lattner at cs.uiuc.edu
Fri Nov 19 19:44:02 PST 2004



Changes in directory llvm/include/llvm/CodeGen:

MachineRelocation.h updated: 1.1 -> 1.2
---
Log message:

Add the getRelocationType method that I forgot


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

Index: llvm/include/llvm/CodeGen/MachineRelocation.h
diff -u llvm/include/llvm/CodeGen/MachineRelocation.h:1.1 llvm/include/llvm/CodeGen/MachineRelocation.h:1.2
--- llvm/include/llvm/CodeGen/MachineRelocation.h:1.1	Fri Nov 19 21:05:50 2004
+++ llvm/include/llvm/CodeGen/MachineRelocation.h	Fri Nov 19 21:43:50 2004
@@ -66,6 +66,12 @@
     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.
   ///






More information about the llvm-commits mailing list