From: Francis Ricci Date: Fri, 6 Oct 2017 15:54:20 +0000 (+0000) Subject: Guard xar RAII behind HAVE_LIBXAR X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5124768496a6c000c56b7c4fe69f2926eddf9518;p=llvm Guard xar RAII behind HAVE_LIBXAR git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp index 031427cf4d9..91ec7fe4252 100644 --- a/tools/llvm-objdump/MachODump.cpp +++ b/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