Work around a circular dependency between IR and MC introduced in r362735
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 7 Jun 2019 09:28:19 +0000 (09:28 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 7 Jun 2019 09:28:19 +0000 (09:28 +0000)
I replaced the circular library dependency with a forward declaration,
but it is only a workaround, not a real fix.

llvm-svn: 362782

llvm/include/llvm/MC/MCSymbolXCOFF.h

index 033d367..30cbf0b 100644 (file)
 
 #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