summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-10-06 15:54:20 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-10-06 15:54:20 +0000
commit195a66f6ebba94fba0c9da510f336556c856a189 (patch)
tree72856809300a74786689f8c9e7865e78c4350da8 /llvm
parente393bc72eeaf57e608f52fb160df92c046b7b376 (diff)
downloadbcm5719-llvm-195a66f6ebba94fba0c9da510f336556c856a189.tar.gz
bcm5719-llvm-195a66f6ebba94fba0c9da510f336556c856a189.zip
Guard xar RAII behind HAVE_LIBXAR
llvm-svn: 315072
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llvm-objdump/MachODump.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp
index 031427cf4d9..91ec7fe4252 100644
--- a/llvm/tools/llvm-objdump/MachODump.cpp
+++ b/llvm/tools/llvm-objdump/MachODump.cpp
@@ -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
OpenPOWER on IntegriCloud