From 9907d0a3c2ec5d2513109c3ddea587c20eb806a2 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Tue, 4 Nov 2014 00:43:16 +0000 Subject: =?UTF-8?q?Add=20the=20code=20and=20test=20cases=20for=2032-bit=20?= =?UTF-8?q?Intel=20to=20llvm-objdump=E2=80=99s=20Mach-O=20symbolizer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit llvm-svn: 221211 --- llvm/lib/Object/MachOObjectFile.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Object/MachOObjectFile.cpp') 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)) -- cgit v1.1