[llvm] r319417 - [dsymutil] Exclude namespace from ifdef in CFBundle

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 02:41:31 PST 2017


Author: jdevlieghere
Date: Thu Nov 30 02:41:31 2017
New Revision: 319417

URL: http://llvm.org/viewvc/llvm-project?rev=319417&view=rev
Log:
[dsymutil] Exclude namespace from ifdef in CFBundle

Should fix build failure introduced by r319416 on non-darwin hosts.

Modified:
    llvm/trunk/tools/dsymutil/CFBundle.cpp

Modified: llvm/trunk/tools/dsymutil/CFBundle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/CFBundle.cpp?rev=319417&r1=319416&r2=319417&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/CFBundle.cpp (original)
+++ llvm/trunk/tools/dsymutil/CFBundle.cpp Thu Nov 30 02:41:31 2017
@@ -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) {




More information about the llvm-commits mailing list