OSDN Git Service

[dsymutil] Exclude namespace from ifdef in CFBundle
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 30 Nov 2017 10:41:31 +0000 (10:41 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 30 Nov 2017 10:41:31 +0000 (10:41 +0000)
Should fix build failure introduced by r319416 on non-darwin hosts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319417 91177308-0d34-0410-b5e6-96231b3b80d8

tools/dsymutil/CFBundle.cpp

index 0155dd8..304838f 100644 (file)
 #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) {