summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-17 23:18:19 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-17 23:18:19 +0000
commitfc79b400b218a42bcad77b5d56c33b50486b9ebb (patch)
tree46c407ee832494cc52d673ba84ab8cec4e8fd876
parentffe8b1c7be74ca27bdf5e6dd79926fae94962f66 (diff)
downloadbcm5719-llvm-fc79b400b218a42bcad77b5d56c33b50486b9ebb.tar.gz
bcm5719-llvm-fc79b400b218a42bcad77b5d56c33b50486b9ebb.zip
This patch alloows lldb to build under GCC.
from dawn@burble.org llvm-svn: 142305
-rw-r--r--lldb/include/lldb/Symbol/ClangASTImporter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/include/lldb/Symbol/ClangASTImporter.h b/lldb/include/lldb/Symbol/ClangASTImporter.h
index 3f0d2d0e692..55fc5d000e5 100644
--- a/lldb/include/lldb/Symbol/ClangASTImporter.h
+++ b/lldb/include/lldb/Symbol/ClangASTImporter.h
@@ -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 {
OpenPOWER on IntegriCloud