Skip to content

Commit

Permalink
cg: Add default global initializers policy.
Browse files Browse the repository at this point in the history
Add default policy that does not skip global initializers.
  • Loading branch information
PappasBrent authored and xlauko committed Aug 29, 2024
1 parent ddc9170 commit c695b54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/vast/CodeGen/DefaultCodeGenPolicy.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "vast/CodeGen/CodeGenPolicy.hpp"
#include "vast/CodeGen/Common.hpp"
#include "vast/Frontend/Options.hpp"

namespace vast::cg {
Expand Down Expand Up @@ -30,6 +31,11 @@ namespace vast::cg {
return opts.front.SkipFunctionBodies;
}

bool skip_global_initializer([[maybe_unused]] const clang_var_decl *decl
) const override {
return false;
};

protected:
cc::action_options &opts;

Expand Down

0 comments on commit c695b54

Please sign in to comment.