[llvm] r362782 - Work around a circular dependency between IR and MC introduced in r362735
Dmitri Gribenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 02:28:20 PDT 2019
Author: gribozavr
Date: Fri Jun 7 02:28:19 2019
New Revision: 362782
URL: http://llvm.org/viewvc/llvm-project?rev=362782&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/MC/MCSymbolXCOFF.h
Modified: llvm/trunk/include/llvm/MC/MCSymbolXCOFF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSymbolXCOFF.h?rev=362782&r1=362781&r2=362782&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSymbolXCOFF.h (original)
+++ llvm/trunk/include/llvm/MC/MCSymbolXCOFF.h Fri Jun 7 02:28:19 2019
@@ -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
More information about the llvm-commits
mailing list