Add the getRelocationType method that I forgot

llvm-svn: 18033
This commit is contained in:
Chris Lattner 2004-11-20 03:43:50 +00:00
parent 6ee028a42a
commit 50e498fac6
1 changed files with 6 additions and 0 deletions

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