From: Adrian Prantl Date: Thu, 15 Oct 2015 20:58:55 +0000 (+0000) Subject: Replace a forward declaration with an #include. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fcef8fb3bbd564d36f1b7266f243ba7a77823031;p=oota-llvm.git Replace a forward declaration with an #include. 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 --- diff --git a/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/lib/CodeGen/AsmPrinter/DebugLocEntry.h index afffa839a60..bbe53249a08 100644 --- a/lib/CodeGen/AsmPrinter/DebugLocEntry.h +++ b/lib/CodeGen/AsmPrinter/DebugLocEntry.h @@ -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.