//===- MCAsmParserExtension.cpp - Asm Parser Hooks ------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmParserExtension.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCParser/MCAsmLexer.h" #include "llvm/MC/MCStreamer.h" usingnamespacellvm; MCAsmParserExtension::MCAsmParserExtension() = default; MCAsmParserExtension::~MCAsmParserExtension() = default; void MCAsmParserExtension::Initialize(MCAsmParser &Parser) { … } /// ParseDirectiveCGProfile /// ::= .cg_profile identifier, identifier, <number> bool MCAsmParserExtension::ParseDirectiveCGProfile(StringRef, SMLoc) { … }