forked from OSchip/llvm-project
Add the getRelocationType method that I forgot
llvm-svn: 18033
This commit is contained in:
parent
6ee028a42a
commit
50e498fac6
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue