[llvm] 65399cd - NativeFormatting.h - reduce raw_ostream.h include to forward declaration. NFC.
    Simon Pilgrim via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat May  9 05:36:33 PDT 2020
    
    
  
Author: Simon Pilgrim
Date: 2020-05-09T13:32:14+01:00
New Revision: 65399cde4b454badd8888c0b2e59e3e418d46993
URL: https://github.com/llvm/llvm-project/commit/65399cde4b454badd8888c0b2e59e3e418d46993
DIFF: https://github.com/llvm/llvm-project/commit/65399cde4b454badd8888c0b2e59e3e418d46993.diff
LOG: NativeFormatting.h - reduce raw_ostream.h include to forward declaration. NFC.
Added: 
    
Modified: 
    llvm/include/llvm/Support/NativeFormatting.h
    llvm/lib/Support/NativeFormatting.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/include/llvm/Support/NativeFormatting.h b/llvm/include/llvm/Support/NativeFormatting.h
index 825a44c77c00..e664d05f24db 100644
--- a/llvm/include/llvm/Support/NativeFormatting.h
+++ b/llvm/include/llvm/Support/NativeFormatting.h
@@ -10,11 +10,10 @@
 #define LLVM_SUPPORT_NATIVE_FORMATTING_H
 
 #include "llvm/ADT/Optional.h"
-#include "llvm/Support/raw_ostream.h"
-
 #include <cstdint>
 
 namespace llvm {
+class raw_ostream;
 enum class FloatStyle { Exponent, ExponentUpper, Fixed, Percent };
 enum class IntegerStyle {
   Integer,
diff  --git a/llvm/lib/Support/NativeFormatting.cpp b/llvm/lib/Support/NativeFormatting.cpp
index 9cd494908016..ae4bffbd94c1 100644
--- a/llvm/lib/Support/NativeFormatting.cpp
+++ b/llvm/lib/Support/NativeFormatting.cpp
@@ -7,12 +7,11 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/NativeFormatting.h"
-
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Support/Format.h"
-
+#include "llvm/Support/raw_ostream.h"
 #include <float.h>
 
 using namespace llvm;
        
    
    
More information about the llvm-commits
mailing list