mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
9da3c56efd
commit
fab11a7110
@ -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
Block a user