[Orc] Remove unnecessary <string> include dependency from Orc 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 20:27:57 +01:00
parent 0e15de2d0c
commit 367ec7755f
11 changed files with 6 additions and 11 deletions

View File

@ -47,7 +47,6 @@
#include <list>
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>

View File

@ -24,7 +24,6 @@
#include "llvm/Support/DynamicLibrary.h"
#include <algorithm>
#include <cstdint>
#include <string>
#include <utility>
#include <vector>

View File

@ -18,8 +18,9 @@
#include "llvm/ExecutionEngine/Orc/Layer.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MemoryBuffer.h"
#include <functional>
#include <memory>
#include <string>
#include <mutex>
namespace llvm {

View File

@ -17,7 +17,6 @@
#include "llvm/ExecutionEngine/JITSymbol.h"
#include "llvm/ExecutionEngine/Orc/Layer.h"
#include <memory>
#include <string>
namespace llvm {
class Module;

View File

@ -27,7 +27,6 @@
#include <functional>
#include <list>
#include <memory>
#include <string>
#include <utility>
#include <vector>

View File

@ -17,7 +17,6 @@
#include "llvm/ExecutionEngine/Orc/Layer.h"
#include <algorithm>
#include <memory>
#include <string>
namespace llvm {
namespace orc {

View File

@ -28,7 +28,6 @@
#include <functional>
#include <list>
#include <memory>
#include <string>
#include <utility>
#include <vector>

View File

@ -7,12 +7,12 @@
//===----------------------------------------------------------------------===//
#include "llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ExecutionEngine/Orc/ExecutionUtils.h"
#include "llvm/IR/Mangler.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/FormatVariadic.h"
#include <string>
using namespace llvm;
using namespace llvm::orc;

View File

@ -7,7 +7,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/ExecutionEngine/Orc/ExecutionUtils.h"
#include "llvm/ExecutionEngine/Orc/Layer.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
@ -17,6 +16,7 @@
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Target/TargetMachine.h"
#include <string>
namespace llvm {
namespace orc {

View File

@ -7,12 +7,11 @@
//===----------------------------------------------------------------------===//
#include "llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ExecutionEngine/JITLink/EHFrameSupport.h"
#include "llvm/ExecutionEngine/Orc/DebugObjectManagerPlugin.h"
#include "llvm/Support/MemoryBuffer.h"
#include <string>
#include <vector>
#define DEBUG_TYPE "orc"

View File

@ -15,6 +15,7 @@
#include "llvm/IR/Constants.h"
#include "llvm/IR/LLVMContext.h"
#include "gtest/gtest.h"
#include <string>
using namespace llvm;
using namespace llvm::orc;