Add the getRelocationType method that I forgot

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-11-20 03:43:50 +00:00
parent 9da3c56efd
commit fab11a7110

View 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.
///