summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/dsymutil/CFBundle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/dsymutil/CFBundle.cpp b/llvm/tools/dsymutil/CFBundle.cpp
index 0155dd89d22..304838f7ee2 100644
--- a/llvm/tools/dsymutil/CFBundle.cpp
+++ b/llvm/tools/dsymutil/CFBundle.cpp
@@ -16,10 +16,12 @@
#include <assert.h>
#include <glob.h>
#include <memory>
+#endif
namespace llvm {
namespace dsymutil {
+#ifdef __APPLE__
/// Deleter that calls CFRelease rather than deleting the pointer.
template <typename T> struct CFDeleter {
void operator()(T *P) {
OpenPOWER on IntegriCloud