[Lldb-commits] [PATCH] D17402: Shuffle an #undef to avoid a warning on FreeBSD

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 18 10:59:03 PST 2016


emaste created this revision.
emaste added a subscriber: lldb-commits.
Herald added a subscriber: emaste.

On FreeBSD _LIBCPP_EXTERN_TEMPLATE is being defined from something included by lldb/lldb-private.h. Undefine it later to avoid the redefinition warning.

http://reviews.llvm.org/D17402

Files:
  source/Core/CxaDemangle.cpp

Index: source/Core/CxaDemangle.cpp
===================================================================
--- source/Core/CxaDemangle.cpp
+++ source/Core/CxaDemangle.cpp
@@ -20,9 +20,8 @@
 #include "lldb/Host/windows/win32.h" // snprintf
 #endif
 #include "llvm/Support/Compiler.h"   // LLVM_{NOEXCEPT, CONSTEXPR, ALIGNAS}
-#undef _LIBCPP_EXTERN_TEMPLATE       // Avoid warning below
-
 #include "lldb/lldb-private.h"
+#undef _LIBCPP_EXTERN_TEMPLATE       // Avoid warning below
 
 //===-------------------------- cxa_demangle.cpp --------------------------===//
 //


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17402.48364.patch
Type: text/x-patch
Size: 564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160218/929468d3/attachment.bin>


More information about the lldb-commits mailing list