Commit 50c66647 authored by nagayama15's avatar nagayama15

オーバーライドする関数の間違いを修正

parent bbc02591
......@@ -40,13 +40,13 @@ namespace
/**
* @brief Initialization before pass is run.
*
* @param module Reference of the module.
* @param function Reference of the function.
*
* @return ?
*/
bool doInitialization(llvm::Module& module) override
bool doInitialization(llvm::Function& function) override
{
module_name_ = module.getName();
module_name_ = function.getParent()->getName();
bit_stream_ = nykk::CircularBitStream::from_string(nykk::pass::watermark_opt);
llvm::errs() << "func" << ", " << "insts" << ", " << "bits" << "\n";
......@@ -57,11 +57,11 @@ namespace
/**
* @brief Finalization after pass is run.
*
* @param module Reference of the module.
* @param function Reference of the function.
*
* @return ?
*/
bool doFinalization([[maybe_unused]] llvm::Module& module) override
bool doFinalization([[maybe_unused]] llvm::Function& function) override
{
module_name_.clear();
bit_stream_.reset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment