[DebugInfo] Remove unnecessary <string> include dependency from DebugInfo headers. NFC.

At most these use the StringRef/Twine wrappers and don't have any implicit uses of std::string.

Move the include down to any cpp implementation where std::string is actually used.
This commit is contained in:
Simon Pilgrim 2021-07-17 16:55:51 +01:00
parent 5df48493f0
commit 9277ce7932
6 changed files with 2 additions and 8 deletions

View File

@ -11,8 +11,6 @@
#include "llvm/Support/Error.h" #include "llvm/Support/Error.h"
#include <string>
namespace llvm { namespace llvm {
namespace codeview { namespace codeview {
enum class cv_error_code { enum class cv_error_code {

View File

@ -12,7 +12,6 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <string>
#include <thread> #include <thread>
#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/ArrayRef.h"

View File

@ -9,7 +9,6 @@
#ifndef LLVM_DEBUGINFO_GSYM_GSYMREADER_H #ifndef LLVM_DEBUGINFO_GSYM_GSYMREADER_H
#define LLVM_DEBUGINFO_GSYM_GSYMREADER_H #define LLVM_DEBUGINFO_GSYM_GSYMREADER_H
#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/ArrayRef.h"
#include "llvm/DebugInfo/GSYM/FileEntry.h" #include "llvm/DebugInfo/GSYM/FileEntry.h"
#include "llvm/DebugInfo/GSYM/FunctionInfo.h" #include "llvm/DebugInfo/GSYM/FunctionInfo.h"
@ -19,11 +18,9 @@
#include "llvm/Support/DataExtractor.h" #include "llvm/Support/DataExtractor.h"
#include "llvm/Support/Endian.h" #include "llvm/Support/Endian.h"
#include "llvm/Support/ErrorOr.h" #include "llvm/Support/ErrorOr.h"
#include <inttypes.h> #include <inttypes.h>
#include <memory> #include <memory>
#include <stdint.h> #include <stdint.h>
#include <string>
#include <vector> #include <vector>
namespace llvm { namespace llvm {

View File

@ -11,8 +11,6 @@
#include "llvm/Support/Error.h" #include "llvm/Support/Error.h"
#include <string>
namespace llvm { namespace llvm {
namespace msf { namespace msf {
enum class msf_error_code { enum class msf_error_code {

View File

@ -9,6 +9,7 @@
#include "llvm/DebugInfo/CodeView/CodeViewError.h" #include "llvm/DebugInfo/CodeView/CodeViewError.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/ManagedStatic.h"
#include <string>
using namespace llvm; using namespace llvm;
using namespace llvm::codeview; using namespace llvm::codeview;

View File

@ -9,6 +9,7 @@
#include "llvm/DebugInfo/MSF/MSFError.h" #include "llvm/DebugInfo/MSF/MSFError.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/ManagedStatic.h"
#include <string>
using namespace llvm; using namespace llvm;
using namespace llvm::msf; using namespace llvm::msf;