Guard xar RAII behind HAVE_LIBXAR

llvm-svn: 315072
This commit is contained in:
Francis Ricci 2017-10-06 15:54:20 +00:00
parent e393bc72ee
commit 195a66f6eb
1 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,7 @@ typedef std::pair<uint64_t, DiceRef> DiceTableEntry;
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