mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
25 lines
611 B
C++
25 lines
611 B
C++
#include <clang/Frontend/FrontendAction.h>
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
struct OutputFilenames {
|
|
// Guest
|
|
std::string thunks;
|
|
std::string function_packs;
|
|
std::string function_packs_public;
|
|
};
|
|
|
|
class FrontendAction : public clang::ASTFrontendAction {
|
|
public:
|
|
FrontendAction(const std::string& libname, const OutputFilenames&);
|
|
|
|
void EndSourceFileAction() override;
|
|
|
|
std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance&, clang::StringRef /*file*/) override;
|
|
|
|
private:
|
|
const std::string& libname;
|
|
const OutputFilenames& output_filenames;
|
|
};
|