LLVM  9.0.0svn
MCTargetAsmParser.cpp
Go to the documentation of this file.
1 //===-- MCTargetAsmParser.cpp - Target Assembly Parser --------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
10 #include "llvm/MC/MCContext.h"
11 
12 using namespace llvm;
13 
15  const MCSubtargetInfo &STI,
16  const MCInstrInfo &MII)
17  : MCOptions(MCOptions), STI(&STI), MII(MII) {}
18 
20 
23  STI = &STICopy;
24  return STICopy;
25 }
26 
28  return *STI;
29 }
This class represents lattice values for constants.
Definition: AllocatorList.h:23
const MCSubtargetInfo * STI
Current STI.
MCTargetAsmParser(MCTargetOptions const &, const MCSubtargetInfo &STI, const MCInstrInfo &MII)
const MCSubtargetInfo & getSTI() const
Interface to description of machine instruction set.
Definition: MCInstrInfo.h:23
Generic base class for all target subtargets.
MCSubtargetInfo & copySTI()
Create a copy of STI and return a non-const reference to it.
~MCTargetAsmParser() override
MCSubtargetInfo & getSubtargetCopy(const MCSubtargetInfo &STI)
Definition: MCContext.cpp:537