diff --git a/tools/lto/LTOCodeGenerator.h b/tools/lto/LTOCodeGenerator.h index 0ebec2ca8b0..2dd3f656577 100644 --- a/tools/lto/LTOCodeGenerator.h +++ b/tools/lto/LTOCodeGenerator.h @@ -27,8 +27,7 @@ // C++ class which implements the opaque lto_code_gen_t // -class LTOCodeGenerator { -public: +struct LTOCodeGenerator { static const char* getVersionString(); LTOCodeGenerator(); diff --git a/tools/lto/LTOModule.h b/tools/lto/LTOModule.h index 4019e015a5d..7f475d40aa0 100644 --- a/tools/lto/LTOModule.h +++ b/tools/lto/LTOModule.h @@ -38,8 +38,7 @@ namespace llvm { // // C++ class which implements the opaque lto_module_t // -class LTOModule { -public: +struct LTOModule { static bool isBitcodeFile(const void* mem, size_t length); static bool isBitcodeFile(const char* path);