[llvm] 7c5fc40 - XCOFF.h - replace StringRef.h include with forward declaration. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 05:54:45 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-23T13:52:48+01:00
New Revision: 7c5fc4006027c7682b5a41f72f4637bbcbbcdf4d
URL: https://github.com/llvm/llvm-project/commit/7c5fc4006027c7682b5a41f72f4637bbcbbcdf4d
DIFF: https://github.com/llvm/llvm-project/commit/7c5fc4006027c7682b5a41f72f4637bbcbbcdf4d.diff
LOG: XCOFF.h - replace StringRef.h include with forward declaration. NFC.
Move StringRef.h include to XCOFF.cpp
Added:
Modified:
llvm/include/llvm/BinaryFormat/XCOFF.h
llvm/lib/BinaryFormat/XCOFF.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/BinaryFormat/XCOFF.h b/llvm/include/llvm/BinaryFormat/XCOFF.h
index f10fcb7b2a62..f09938a5788f 100644
--- a/llvm/include/llvm/BinaryFormat/XCOFF.h
+++ b/llvm/include/llvm/BinaryFormat/XCOFF.h
@@ -13,10 +13,11 @@
#ifndef LLVM_BINARYFORMAT_XCOFF_H
#define LLVM_BINARYFORMAT_XCOFF_H
-#include "llvm/ADT/StringRef.h"
#include <cstdint>
namespace llvm {
+class StringRef;
+
namespace XCOFF {
// Constants used in the XCOFF definition.
diff --git a/llvm/lib/BinaryFormat/XCOFF.cpp b/llvm/lib/BinaryFormat/XCOFF.cpp
index fe98f5c044a4..3c8a2cdbc3aa 100644
--- a/llvm/lib/BinaryFormat/XCOFF.cpp
+++ b/llvm/lib/BinaryFormat/XCOFF.cpp
@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/BinaryFormat/XCOFF.h"
+#include "llvm/ADT/StringRef.h"
using namespace llvm;
More information about the llvm-commits
mailing list