Fix struct/class mismatch for LTOModule and LTOCodeGenerator, detected by Clang
authorDouglas Gregor <dgregor@apple.com>
Wed, 23 Dec 2009 17:05:07 +0000 (17:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 23 Dec 2009 17:05:07 +0000 (17:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92004 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto/LTOCodeGenerator.h
tools/lto/LTOModule.h

index 0ebec2ca8b0f5376d6e53ec19839d12bfada75eb..2dd3f6565775899b93173d51c453f9c908115bc1 100644 (file)
@@ -27,8 +27,7 @@
 // C++ class which implements the opaque lto_code_gen_t
 //
 
-class LTOCodeGenerator {
-public:
+struct LTOCodeGenerator {
     static const char*        getVersionString();
     
                             LTOCodeGenerator();
index 4019e015a5d88b50da808c3a80ddd4b03e8b6f9a..7f475d40aa0a88edf6aeaf241a52e8e0069fc899 100644 (file)
@@ -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);