forked from OSchip/llvm-project
X86Subtarget.h - remove unnecessary TargetMachine.h include. NFC.
By moving X86Subtarget::isPositionIndependent() into X86Subtarget.cpp we can remove the header dependency and move the few uses into source files.
This commit is contained in:
parent
478f2ce5d3
commit
d0f2a8a049
|
@ -40,6 +40,7 @@
|
|||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/MC/MCSymbolELF.h"
|
||||
#include "llvm/Target/TargetLoweringObjectFile.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <iterator>
|
||||
|
|
|
@ -378,3 +378,7 @@ void X86Subtarget::getPostRAMutations(
|
|||
std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations) const {
|
||||
Mutations.push_back(createX86MacroFusionDAGMutation());
|
||||
}
|
||||
|
||||
bool X86Subtarget::isPositionIndependent() const {
|
||||
return TM.isPositionIndependent();
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include "llvm/ADT/Triple.h"
|
||||
#include "llvm/CodeGen/TargetSubtargetInfo.h"
|
||||
#include "llvm/IR/CallingConv.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include <climits>
|
||||
#include <memory>
|
||||
|
||||
|
@ -35,6 +34,7 @@ class InstructionSelector;
|
|||
class LegalizerInfo;
|
||||
class RegisterBankInfo;
|
||||
class StringRef;
|
||||
class TargetMachine;
|
||||
|
||||
/// The X86 backend supports a number of different styles of PIC.
|
||||
///
|
||||
|
@ -841,7 +841,7 @@ public:
|
|||
return PICStyle == PICStyles::Style::StubPIC;
|
||||
}
|
||||
|
||||
bool isPositionIndependent() const { return TM.isPositionIndependent(); }
|
||||
bool isPositionIndependent() const;
|
||||
|
||||
bool isCallingConvWin64(CallingConv::ID CC) const {
|
||||
switch (CC) {
|
||||
|
|
Loading…
Reference in New Issue