LLVM  4.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 using namespace llvm;
13 
14 MCTargetAsmParser::MCTargetAsmParser(MCTargetOptions const &MCOptions,
15  const MCSubtargetInfo &STI)
16  : AvailableFeatures(0), ParsingInlineAsm(false), MCOptions(MCOptions),
17  STI(&STI)
18 {
19 }
20 
22 }
23 
26  STI = &STICopy;
27  return STICopy;
28 }
29 
31  return *STI;
32 }
const MCSubtargetInfo * STI
Current STI.
Function Alias Analysis false
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.
MCSubtargetInfo & getSubtargetCopy(const MCSubtargetInfo &STI)
Definition: MCContext.cpp:465