From 35ac67ff8eb7db3e0ea1177727ec141162481fa7 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 23 Dec 2009 17:05:07 +0000 Subject: [PATCH] Fix struct/class mismatch for LTOModule and LTOCodeGenerator, detected by Clang llvm-svn: 92004 --- llvm/tools/lto/LTOCodeGenerator.h | 3 +-- llvm/tools/lto/LTOModule.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/tools/lto/LTOCodeGenerator.h b/llvm/tools/lto/LTOCodeGenerator.h index 0ebec2ca8b0f..2dd3f6565775 100644 --- a/llvm/tools/lto/LTOCodeGenerator.h +++ b/llvm/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/llvm/tools/lto/LTOModule.h b/llvm/tools/lto/LTOModule.h index 4019e015a5d8..7f475d40aa0a 100644 --- a/llvm/tools/lto/LTOModule.h +++ b/llvm/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);