LLVM  5.0.0
MCTargetAsmParser.cpp
Go to the documentation of this file.
1 //===-- MCTargetAsmParser.cpp - Target Assembly Parser --------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
11 #include "llvm/MC/MCContext.h"
12 
13 using namespace llvm;
14 
16  const MCSubtargetInfo &STI)
17  : MCOptions(MCOptions), STI(&STI) {}
18 
20 
23  STI = &STICopy;
24  return STICopy;
25 }
26 
28  return *STI;
29 }
const MCSubtargetInfo * STI
Current STI.
const MCSubtargetInfo & getSTI() const
MCSubtargetInfo - Generic base class for all target subtargets.
MCSubtargetInfo & copySTI()
Create a copy of STI and return a non-const reference to it.
~MCTargetAsmParser() override
MCTargetAsmParser(MCTargetOptions const &, const MCSubtargetInfo &STI)
MCSubtargetInfo & getSubtargetCopy(const MCSubtargetInfo &STI)
Definition: MCContext.cpp:563