[llvm] r250459 - Replace a forward declaration with an #include.
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 13:58:55 PDT 2015
Author: adrian
Date: Thu Oct 15 15:58:55 2015
New Revision: 250459
URL: http://llvm.org/viewvc/llvm-project?rev=250459&view=rev
Log:
Replace a forward declaration with an #include.
When building with modules the forward-declared inner class
DebugLocStream::ListBuilder causes clang to fall over.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DebugLocEntry.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DebugLocEntry.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DebugLocEntry.h?rev=250459&r1=250458&r2=250459&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DebugLocEntry.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DebugLocEntry.h Thu Oct 15 15:58:55 2015
@@ -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.
More information about the llvm-commits
mailing list