[llvm] r316714 - MCCodePadder.h: Include definition of type for use with DenseMap

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 26 16:39:52 PDT 2017


Author: dblaikie
Date: Thu Oct 26 16:39:52 2017
New Revision: 316714

URL: http://llvm.org/viewvc/llvm-project?rev=316714&view=rev
Log:
MCCodePadder.h: Include definition of type for use with DenseMap

Pointer traits require a full definition of a type to function
correctly, so the header must be included rather than only a forward
declaration.

Modified:
    llvm/trunk/include/llvm/MC/MCCodePadder.h

Modified: llvm/trunk/include/llvm/MC/MCCodePadder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCCodePadder.h?rev=316714&r1=316713&r2=316714&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCCodePadder.h (original)
+++ llvm/trunk/include/llvm/MC/MCCodePadder.h Thu Oct 26 16:39:52 2017
@@ -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;




More information about the llvm-commits mailing list