[Lldb-commits] [PATCH] work-around for compiling with gcc

dawn at burble.org dawn at burble.org
Mon Oct 17 16:10:46 PDT 2011


Forgot the attachment!

-Dawn

On Mon, Oct 17, 2011 at 04:06:13PM -0700, dawn at burble.org wrote:
> This patch alloows lldb to build under GCC. See emails under the
> thread "[lldb-dev] one more bug in evaluation" for more information.
> 
> Please commit!
> 
> Thanks in advance,
>     -Dawn
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
-------------- next part --------------
Index: include/lldb/Symbol/ClangASTImporter.h
===================================================================
--- include/lldb/Symbol/ClangASTImporter.h	(revision 142299)
+++ include/lldb/Symbol/ClangASTImporter.h	(working copy)
@@ -17,6 +17,11 @@
 #include "clang/AST/ASTImporter.h"
 #include "clang/Basic/FileManager.h"
 #include "clang/Basic/FileSystemOptions.h"
+#if defined(__GNUC__) && !defined(__clang__)
+// Gcc complains about ClangNamespaceDecl being an incomplete type
+// without this.
+#include "lldb/Symbol/ClangNamespaceDecl.h"
+#endif
 
 namespace lldb_private {
 


More information about the lldb-commits mailing list