projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9da3c56
)
Add the getRelocationType method that I forgot
author
Chris Lattner
<sabre@nondot.org>
Sat, 20 Nov 2004 03:43:50 +0000
(
03:43
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 20 Nov 2004 03:43:50 +0000
(
03:43
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18033
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineRelocation.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineRelocation.h
b/include/llvm/CodeGen/MachineRelocation.h
index 71bccad5c2536325858ef092d023d017e4030bd1..96d6c688a772554a0bfab8c42137c20462eeeda3 100644
(file)
--- a/
include/llvm/CodeGen/MachineRelocation.h
+++ b/
include/llvm/CodeGen/MachineRelocation.h
@@
-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.
///