[llvm] r315072 - Guard xar RAII behind HAVE_LIBXAR
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 6 08:54:20 PDT 2017
Author: fjricci
Date: Fri Oct 6 08:54:20 2017
New Revision: 315072
URL: http://llvm.org/viewvc/llvm-project?rev=315072&view=rev
Log:
Guard xar RAII behind HAVE_LIBXAR
Modified:
llvm/trunk/tools/llvm-objdump/MachODump.cpp
Modified: llvm/trunk/tools/llvm-objdump/MachODump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/MachODump.cpp?rev=315072&r1=315071&r2=315072&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/MachODump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/MachODump.cpp Fri Oct 6 08:54:20 2017
@@ -202,6 +202,7 @@ typedef std::pair<uint64_t, DiceRef> Dic
typedef std::vector<DiceTableEntry> 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
More information about the llvm-commits
mailing list