From: Chris Lattner Date: Sun, 24 Aug 2008 18:38:56 +0000 (+0000) Subject: we should use 'class' for non-pod types instead of 'struct' to X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=42387462303a8eb917569305d5390c8da64ac82f;p=oota-llvm.git we should use 'class' for non-pod types instead of 'struct' to make it easier to deal with the VC++ struct/class bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55290 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Assembly/AsmAnnotationWriter.h b/include/llvm/Assembly/AsmAnnotationWriter.h index b2549407221..6c3ddaf7d0a 100644 --- a/include/llvm/Assembly/AsmAnnotationWriter.h +++ b/include/llvm/Assembly/AsmAnnotationWriter.h @@ -24,7 +24,8 @@ class BasicBlock; class Instruction; class raw_ostream; -struct AssemblyAnnotationWriter { +class AssemblyAnnotationWriter { +public: virtual ~AssemblyAnnotationWriter(); diff --git a/include/llvm/Value.h b/include/llvm/Value.h index b86d1374ebc..ceb1ad246d5 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -36,7 +36,7 @@ class TypeSymbolTable; template class StringMapEntry; typedef StringMapEntry ValueName; class raw_ostream; -struct AssemblyAnnotationWriter; +class AssemblyAnnotationWriter; //===----------------------------------------------------------------------===// // Value Class