ItaniumManglingCanonicalizer - reduce StringRef.h include to forward declaration + remove duplicate includes. NFC

This commit is contained in:
Simon Pilgrim 2020-05-08 13:02:57 +01:00
parent 7283ec0170
commit c60c80e0cf
2 changed files with 4 additions and 7 deletions

View File

@ -14,11 +14,12 @@
#ifndef LLVM_SUPPORT_ITANIUMMANGLINGCANONICALIZER_H #ifndef LLVM_SUPPORT_ITANIUMMANGLINGCANONICALIZER_H
#define LLVM_SUPPORT_ITANIUMMANGLINGCANONICALIZER_H #define LLVM_SUPPORT_ITANIUMMANGLINGCANONICALIZER_H
#include "llvm/ADT/StringRef.h"
#include <cstddef> #include <cstddef>
namespace llvm { namespace llvm {
class StringRef;
/// Canonicalizer for mangled names. /// Canonicalizer for mangled names.
/// ///
/// This class allows specifying a list of "equivalent" manglings. For example, /// This class allows specifying a list of "equivalent" manglings. For example,

View File

@ -7,16 +7,12 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/Support/ItaniumManglingCanonicalizer.h" #include "llvm/Support/ItaniumManglingCanonicalizer.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/Demangle/ItaniumDemangle.h" #include "llvm/Demangle/ItaniumDemangle.h"
#include "llvm/Support/Allocator.h" #include "llvm/Support/Allocator.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/StringRef.h"
using namespace llvm; using namespace llvm;
using llvm::itanium_demangle::ForwardTemplateReference; using llvm::itanium_demangle::ForwardTemplateReference;
using llvm::itanium_demangle::Node; using llvm::itanium_demangle::Node;