diff options
| author | Kevin Enderby <enderby@apple.com> | 2014-11-04 00:43:16 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2014-11-04 00:43:16 +0000 |
| commit | 9907d0a3c2ec5d2513109c3ddea587c20eb806a2 (patch) | |
| tree | 20b2c06842f338aab6999141e7920441a10ed1db /llvm/lib | |
| parent | 5241881bbc39eaf5f557e4d08ac74f2fe39cae6d (diff) | |
| download | bcm5719-llvm-9907d0a3c2ec5d2513109c3ddea587c20eb806a2.tar.gz bcm5719-llvm-9907d0a3c2ec5d2513109c3ddea587c20eb806a2.zip | |
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')
| -rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 75e39fdf720..678728e1de7 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)) |

