Revert rGf0bab7875e78e01c149d12302dcc4b6d4c43e25c - "Triple.h - reduce Twine.h include to forward declarations. NFC."

This causes ICEs on the clang-ppc64be buildbots and I've limited ability to triage the problem.
This commit is contained in:
Simon Pilgrim 2020-06-26 14:46:20 +01:00
parent d6485ed3a7
commit 0069824fea
9 changed files with 1 additions and 12 deletions

View File

@ -23,7 +23,6 @@
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Allocator.h" #include "llvm/Support/Allocator.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"

View File

@ -16,7 +16,6 @@
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "clang/Basic/TargetOptions.h" #include "clang/Basic/TargetOptions.h"
#include "llvm/ADT/Triple.h" #include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"
namespace clang { namespace clang {

View File

@ -9,8 +9,7 @@
#ifndef LLVM_ADT_TRIPLE_H #ifndef LLVM_ADT_TRIPLE_H
#define LLVM_ADT_TRIPLE_H #define LLVM_ADT_TRIPLE_H
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h"
#include <cassert>
// Some system headers or GCC predefined macros conflict with identifiers in // Some system headers or GCC predefined macros conflict with identifiers in
// this file. Undefine them here. // this file. Undefine them here.
@ -20,7 +19,6 @@
namespace llvm { namespace llvm {
class Twine;
class VersionTuple; class VersionTuple;
/// Triple - Helper class for working with autoconf configuration names. For /// Triple - Helper class for working with autoconf configuration names. For

View File

@ -22,7 +22,6 @@
#include "llvm/ADT/Optional.h" #include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h" #include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/ADT/iterator_range.h" #include "llvm/ADT/iterator_range.h"
#include "llvm/Support/CodeGen.h" #include "llvm/Support/CodeGen.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"

View File

@ -8,7 +8,6 @@
#include "llvm/MC/MCSectionELF.h" #include "llvm/MC/MCSectionELF.h"
#include "llvm/ADT/Triple.h" #include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/ELF.h" #include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCExpr.h" #include "llvm/MC/MCExpr.h"

View File

@ -11,7 +11,6 @@
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h" #include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Host.h" #include "llvm/Support/Host.h"
#include "llvm/Support/SwapByteOrder.h" #include "llvm/Support/SwapByteOrder.h"
@ -19,7 +18,6 @@
#include "llvm/Support/VersionTuple.h" #include "llvm/Support/VersionTuple.h"
#include <cassert> #include <cassert>
#include <cstring> #include <cstring>
using namespace llvm; using namespace llvm;
StringRef Triple::getArchTypeName(ArchType Kind) { StringRef Triple::getArchTypeName(ArchType Kind) {

View File

@ -7,7 +7,6 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/ADT/Triple.h" #include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/VersionTuple.h" #include "llvm/Support/VersionTuple.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"

View File

@ -8,7 +8,6 @@
#include "llvm/Frontend/OpenMP/OMPConstants.h" #include "llvm/Frontend/OpenMP/OMPConstants.h"
#include "llvm/Frontend/OpenMP/OMPContext.h" #include "llvm/Frontend/OpenMP/OMPContext.h"
#include "llvm/ADT/Twine.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
using namespace llvm; using namespace llvm;

View File

@ -12,7 +12,6 @@
#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Triple.h" #include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Host.h" #include "llvm/Support/Host.h"
#include "llvm/Support/TargetSelect.h" #include "llvm/Support/TargetSelect.h"
#include "llvm/Support/Threading.h" #include "llvm/Support/Threading.h"