代码拉取完成,页面将自动刷新
#ifndef AUTOFDO_LLVM_PROPELLER_MOCK_WHOLE_PROGRAM_INFO_H_
#define AUTOFDO_LLVM_PROPELLER_MOCK_WHOLE_PROGRAM_INFO_H_
#if defined(HAVE_LLVM)
#include "llvm_propeller_abstract_whole_program_info.h"
#include "llvm_propeller_cfg.pb.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/StringSaver.h"
namespace devtools_crosstool_autofdo {
class MockPropellerWholeProgramInfo : public AbstractPropellerWholeProgramInfo {
public:
explicit MockPropellerWholeProgramInfo(const PropellerOptions &options)
: AbstractPropellerWholeProgramInfo(options) {}
~MockPropellerWholeProgramInfo() final {}
bool CreateCfgs() override;
private:
void CreateCfgsFromProtobuf();
// When we construct Symbols/CFGs from protobuf, bump_ptr_allocator_ and
// string_saver_ are used to keep all the string content. (Whereas in case of
// constructing from binary files, the strings are kept in
// binary_file_content.)
std::unique_ptr<llvm::BumpPtrAllocator> bump_ptr_allocator_;
std::unique_ptr<llvm::StringSaver> string_saver_;
// Protobuf container.
PropellerPb propeller_pb_;
};
} // namespace devtools_crosstool_autofdo
#endif
#endif // AUTOFDO_LLVM_PROPELLER_MOCK_WHOLE_PROGRAM_INFO_H_
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。