代码拉取完成,页面将自动刷新
//===-- EmitRaisedOutputPass.h ----------------------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This file contains the declaration of EmitRaisedOutputPass for use by
// llvm-mctoll. This class is provided to inhibit printing of target line
// and keep the resulting output architecture-neutral.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCTOLL_EMITRAISEDOUTPUTPASS_H
#define LLVM_TOOLS_LLVM_MCTOLL_EMITRAISEDOUTPUTPASS_H
#include "llvm/Bitcode/BitcodeWriterPass.h"
#include "llvm/IR/IRPrintingPasses.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Pass.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Target/TargetMachine.h"
using namespace llvm;
class EmitRaisedOutputPass : public ModulePass {
CodeGenFileType OutFileType;
PrintModulePass PrintAsmPass;
BitcodeWriterPass PrintBitCodePass;
public:
static char ID;
EmitRaisedOutputPass()
: ModulePass(ID), OutFileType(CGFT_Null), PrintBitCodePass(dbgs()) {}
EmitRaisedOutputPass(raw_ostream &OS, CodeGenFileType CGFT,
const std::string &Banner = "",
bool ShouldPreserveUseListOrder = false)
: ModulePass(ID), OutFileType(CGFT),
PrintAsmPass(OS, Banner, ShouldPreserveUseListOrder),
PrintBitCodePass(OS, ShouldPreserveUseListOrder) {}
bool runOnModule(Module &M) override;
void getAnalysisUsage(AnalysisUsage &AU) const override;
};
#endif // LLVM_TOOLS_LLVM_MCTOLL_EMITRAISEDOUTPUTPASS_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。