diff --git a/llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h b/llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h index 7a5edf78fdcc..8d9e5af448e4 100644 --- a/llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h +++ b/llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h @@ -15,11 +15,12 @@ #define LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H #include "llvm/ADT/Optional.h" -#include "llvm/MC/MCTargetOptions.h" -#include "llvm/Support/CommandLine.h" +#include namespace llvm { +class MCTargetOptions; + namespace mc { bool getRelaxAll(); diff --git a/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp b/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp index 3ca34061241a..34dd759c894e 100644 --- a/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp +++ b/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp @@ -13,6 +13,8 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCTargetOptionsCommandFlags.h" +#include "llvm/MC/MCTargetOptions.h" +#include "llvm/Support/CommandLine.h" using namespace llvm;