Architecture.h - reduce includes to forward declarations. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 30 May 2020 11:17:13 +0000 (12:17 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 30 May 2020 11:17:13 +0000 (12:17 +0100)
Move includes to Architecture.cpp.

llvm/include/llvm/TextAPI/MachO/Architecture.h
llvm/lib/TextAPI/MachO/Architecture.cpp

index 3898cba..c7ffea7 100644 (file)
 #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 <cstdint>
+#include <utility>
 
 namespace llvm {
+class raw_ostream;
+class StringRef;
+class Triple;
+
 namespace MachO {
 
 /// Defines the architecture slices that are supported by Text-based Stub files.
index 699fb5f..e1c2d42 100644 (file)
@@ -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 {