MC: Remove most remaining uses of MCSymbolData::getSymbol(), NFC
[oota-llvm.git] / lib / Target / AArch64 / AArch64TargetMachine.h
index af692de7430b57564ccd5e5c48051ddb7f06934f..ec34fad97c8d75fa47feb63a32b12ca1cb468ef6 100644 (file)
@@ -23,7 +23,8 @@ namespace llvm {
 
 class AArch64TargetMachine : public LLVMTargetMachine {
 protected:
-  AArch64Subtarget Subtarget;
+  std::unique_ptr<TargetLoweringObjectFile> TLOF;
+  mutable StringMap<std::unique_ptr<AArch64Subtarget>> SubtargetMap;
 
 public:
   AArch64TargetMachine(const Target &T, StringRef TT, StringRef CPU,
@@ -31,22 +32,21 @@ public:
                        Reloc::Model RM, CodeModel::Model CM,
                        CodeGenOpt::Level OL, bool IsLittleEndian);
 
-  using LLVMTargetMachine::getSubtargetImpl;
-  const AArch64Subtarget *getSubtargetImpl() const override {
-    return &Subtarget;
-  }
+  ~AArch64TargetMachine() override;
+  const AArch64Subtarget *getSubtargetImpl(const Function &F) const override;
 
   // Pass Pipeline Configuration
   TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
 
-  /// \brief Register AArch64 analysis passes with a pass manager.
-  void addAnalysisPasses(PassManagerBase &PM) override;
+  /// \brief Get the TargetIRAnalysis for this target.
+  TargetIRAnalysis getTargetIRAnalysis() override;
 
-  /// \brief Query if the PBQP register allocator is being used
-  bool isPBQPUsed() const { return usingPBQP; }
+  TargetLoweringObjectFile* getObjFileLowering() const override {
+    return TLOF.get();
+  }
 
 private:
-  bool usingPBQP;
+  bool isLittle;
 };
 
 // AArch64leTargetMachine - AArch64 little endian target machine.