diff --git a/llvm/include/llvm/TextAPI/MachO/Architecture.h b/llvm/include/llvm/TextAPI/MachO/Architecture.h index 3898cbada68f..c7ffea78962d 100644 --- a/llvm/include/llvm/TextAPI/MachO/Architecture.h +++ b/llvm/include/llvm/TextAPI/MachO/Architecture.h @@ -13,11 +13,14 @@ #ifndef LLVM_TEXTAPI_MACHO_ARCHITECTURE_H #define LLVM_TEXTAPI_MACHO_ARCHITECTURE_H -#include "llvm/ADT/StringRef.h" -#include "llvm/ADT/Triple.h" -#include "llvm/Support/raw_ostream.h" +#include +#include namespace llvm { +class raw_ostream; +class StringRef; +class Triple; + namespace MachO { /// Defines the architecture slices that are supported by Text-based Stub files. diff --git a/llvm/lib/TextAPI/MachO/Architecture.cpp b/llvm/lib/TextAPI/MachO/Architecture.cpp index 699fb5f4587a..e1c2d42927ec 100644 --- a/llvm/lib/TextAPI/MachO/Architecture.cpp +++ b/llvm/lib/TextAPI/MachO/Architecture.cpp @@ -12,7 +12,9 @@ #include "llvm/TextAPI/MachO/Architecture.h" #include "llvm/ADT/StringSwitch.h" +#include "llvm/ADT/Triple.h" #include "llvm/BinaryFormat/MachO.h" +#include "llvm/Support/raw_ostream.h" namespace llvm { namespace MachO {