Replace a forward declaration with an #include.
authorAdrian Prantl <aprantl@apple.com>
Thu, 15 Oct 2015 20:58:55 +0000 (20:58 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 15 Oct 2015 20:58:55 +0000 (20:58 +0000)
When building with modules the forward-declared inner class
DebugLocStream::ListBuilder causes clang to fall over.

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

lib/CodeGen/AsmPrinter/DebugLocEntry.h

index afffa839a606de74a76b6e6d3ffc6cb266b9b3a5..bbe53249a08493a27dd1c28444535c82d161604c 100644 (file)
@@ -9,6 +9,8 @@
 
 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DEBUGLOCENTRY_H
 #define LLVM_LIB_CODEGEN_ASMPRINTER_DEBUGLOCENTRY_H
+
+#include "DebugLocStream.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/IR/Constants.h"
 #include "llvm/IR/DebugInfo.h"
@@ -17,7 +19,6 @@
 
 namespace llvm {
 class AsmPrinter;
-class DebugLocStream;
 
 /// \brief This struct describes location entries emitted in the .debug_loc
 /// section.