aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-11-04 00:43:16 +0000
committerKevin Enderby <enderby@apple.com>2014-11-04 00:43:16 +0000
commit9907d0a3c2ec5d2513109c3ddea587c20eb806a2 (patch)
tree20b2c06842f338aab6999141e7920441a10ed1db /llvm/lib/Object/MachOObjectFile.cpp
parent5241881bbc39eaf5f557e4d08ac74f2fe39cae6d (diff)
downloadllvm-9907d0a3c2ec5d2513109c3ddea587c20eb806a2.zip
llvm-9907d0a3c2ec5d2513109c3ddea587c20eb806a2.tar.gz
llvm-9907d0a3c2ec5d2513109c3ddea587c20eb806a2.tar.bz2
Add the code and test cases for 32-bit Intel to llvm-objdump’s Mach-O symbolizer.
llvm-svn: 221211
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 75e39fd..678728e 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -2150,6 +2150,11 @@ uint32_t MachOObjectFile::getScatteredRelocationValue(
return RE.r_word1;
}
+uint32_t MachOObjectFile::getScatteredRelocationType(
+ const MachO::any_relocation_info &RE) const {
+ return (RE.r_word0 >> 24) & 0xf;
+}
+
unsigned MachOObjectFile::getAnyRelocationAddress(
const MachO::any_relocation_info &RE) const {
if (isRelocationScattered(RE))