From 195a66f6ebba94fba0c9da510f336556c856a189 Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Fri, 6 Oct 2017 15:54:20 +0000 Subject: [PATCH] Guard xar RAII behind HAVE_LIBXAR llvm-svn: 315072 --- llvm/tools/llvm-objdump/MachODump.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp index 031427cf4d91..91ec7fe42529 100644 --- a/llvm/tools/llvm-objdump/MachODump.cpp +++ b/llvm/tools/llvm-objdump/MachODump.cpp @@ -202,6 +202,7 @@ typedef std::pair DiceTableEntry; typedef std::vector DiceTable; typedef DiceTable::iterator dice_table_iterator; +#ifdef HAVE_LIBXAR namespace { struct ScopedXarFile { xar_t xar; @@ -229,6 +230,7 @@ struct ScopedXarIter { operator xar_iter_t() { return iter; } }; } // namespace +#endif // defined(HAVE_LIBXAR) // This is used to search for a data in code table entry for the PC being // disassembled. The j parameter has the PC in j.first. A single data in code