From 65399cde4b454badd8888c0b2e59e3e418d46993 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 9 May 2020 13:31:39 +0100 Subject: [PATCH] NativeFormatting.h - reduce raw_ostream.h include to forward declaration. NFC. --- llvm/include/llvm/Support/NativeFormatting.h | 3 +-- llvm/lib/Support/NativeFormatting.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Support/NativeFormatting.h b/llvm/include/llvm/Support/NativeFormatting.h index 825a44c77c001..e664d05f24dbd 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 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 9cd494908016f..ae4bffbd94c1a 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 using namespace llvm;