OSDN Git Service

MCCodePadder.h: Include definition of type for use with DenseMap
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 26 Oct 2017 23:39:52 +0000 (23:39 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 26 Oct 2017 23:39:52 +0000 (23:39 +0000)
Pointer traits require a full definition of a type to function
correctly, so the header must be included rather than only a forward
declaration.

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

include/llvm/MC/MCCodePadder.h

index b590773..1e91198 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef LLVM_MC_MCCODEPADDER_H
 #define LLVM_MC_MCCODEPADDER_H
 
+#include "MCFragment.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/ADT/SmallVector.h"
@@ -21,7 +22,6 @@ class MCCodePaddingPolicy;
 class MCFragment;
 class MCInst;
 class MCObjectStreamer;
-class MCPaddingFragment;
 class MCSection;
 
 typedef SmallVector<const MCPaddingFragment *, 8> MCPFRange;