From: Dmitri Gribenko Date: Fri, 7 Jun 2019 09:28:19 +0000 (+0000) Subject: Work around a circular dependency between IR and MC introduced in r362735 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=224017fde6a9c4ae850e870563136d66843b4963;p=llvm Work around a circular dependency between IR and MC introduced in r362735 I replaced the circular library dependency with a forward declaration, but it is only a workaround, not a real fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362782 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCSymbolXCOFF.h b/include/llvm/MC/MCSymbolXCOFF.h index 033d3678e15..30cbf0b7893 100644 --- a/include/llvm/MC/MCSymbolXCOFF.h +++ b/include/llvm/MC/MCSymbolXCOFF.h @@ -10,10 +10,11 @@ #include "llvm/BinaryFormat/XCOFF.h" #include "llvm/MC/MCSymbol.h" -#include "llvm/IR/GlobalValue.h" namespace llvm { +class GlobalValue; + class MCSymbolXCOFF : public MCSymbol { // The IR symbol this MCSymbolXCOFF is based on. It is set on function // entry point symbols when they are the callee operand of a direct call