From: Alkis Evlogimenos Date: Tue, 28 Sep 2004 01:59:17 +0000 (+0000) Subject: Use class instead of struct for defining classes. This unbreaks the X-Git-Tag: android-x86-6.0-r1~1003^2~52728 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=148d2065e4eb60357014a39c8e0d66c908679ffd;p=android-x86%2Fexternal-llvm.git Use class instead of struct for defining classes. This unbreaks the build on windows. Patch contributed by Paolo Invernizzi! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16531 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/IntrinsicLowering.h b/include/llvm/CodeGen/IntrinsicLowering.h index ad4a9e57243..b15d505308a 100644 --- a/include/llvm/CodeGen/IntrinsicLowering.h +++ b/include/llvm/CodeGen/IntrinsicLowering.h @@ -39,7 +39,8 @@ namespace llvm { class CallInst; class Module; - struct IntrinsicLowering { + class IntrinsicLowering { + public: virtual ~IntrinsicLowering() {} /// AddPrototypes - This method, if called, causes all of the prototypes diff --git a/include/llvm/Target/TargetJITInfo.h b/include/llvm/Target/TargetJITInfo.h index 90fea4e3c31..02571ece453 100644 --- a/include/llvm/Target/TargetJITInfo.h +++ b/include/llvm/Target/TargetJITInfo.h @@ -24,7 +24,8 @@ namespace llvm { /// TargetJITInfo - Target specific information required by the Just-In-Time /// code generator. - struct TargetJITInfo { + class TargetJITInfo { + public: virtual ~TargetJITInfo() {} /// addPassesToJITCompile - Add passes to the specified pass manager to diff --git a/include/llvm/Type.h b/include/llvm/Type.h index dbc7881eb1f..c2cae13454c 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -50,7 +50,8 @@ class PointerType; class StructType; class PackedType; -struct Type { +class Type { +public: ///===-------------------------------------------------------------------===// /// Definitions of all of the base types for the Type system. Based on this /// value, you can cast to a "DerivedType" subclass (see DerivedTypes.h)