[llvm] d1765cf - ArchitectureSet.h - reduce raw_ostream.h include to forward declaration. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat May 30 04:36:40 PDT 2020


Author: Simon Pilgrim
Date: 2020-05-30T12:36:16+01:00
New Revision: d1765cf1974bdf298d7cec8302013f314a70a032

URL: https://github.com/llvm/llvm-project/commit/d1765cf1974bdf298d7cec8302013f314a70a032
DIFF: https://github.com/llvm/llvm-project/commit/d1765cf1974bdf298d7cec8302013f314a70a032.diff

LOG: ArchitectureSet.h - reduce raw_ostream.h include to forward declaration. NFC.

Move raw_ostream.h include to ArchitectureSet.cpp.

Added: 
    

Modified: 
    llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
    llvm/lib/TextAPI/MachO/ArchitectureSet.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h b/llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
index 6e4ede6275b4..e3a8dad45d42 100644
--- a/llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
+++ b/llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
@@ -13,14 +13,16 @@
 #ifndef LLVM_TEXTAPI_MACHO_ARCHITECTURE_SET_H
 #define LLVM_TEXTAPI_MACHO_ARCHITECTURE_SET_H
 
-#include "llvm/Support/raw_ostream.h"
 #include "llvm/TextAPI/MachO/Architecture.h"
 #include <cstddef>
 #include <iterator>
 #include <limits>
+#include <string>
 #include <vector>
 
 namespace llvm {
+class raw_ostream;
+
 namespace MachO {
 
 class ArchitectureSet {

diff  --git a/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp b/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp
index a05d3ebd67bc..f665706fad81 100644
--- a/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp
+++ b/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp
@@ -11,6 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/TextAPI/MachO/ArchitectureSet.h"
+#include "llvm/Support/raw_ostream.h"
 
 namespace llvm {
 namespace MachO {


        


More information about the llvm-commits mailing list