From: Douglas Gregor Date: Wed, 23 Dec 2009 17:05:07 +0000 (+0000) Subject: Fix struct/class mismatch for LTOModule and LTOCodeGenerator, detected by Clang X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f291059b26350bd96d7723d28a35734fe0a1484;p=oota-llvm.git Fix struct/class mismatch for LTOModule and LTOCodeGenerator, detected by Clang git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92004 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);