we should use 'class' for non-pod types instead of 'struct' to
authorChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2008 18:38:56 +0000 (18:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2008 18:38:56 +0000 (18:38 +0000)
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

include/llvm/Assembly/AsmAnnotationWriter.h
include/llvm/Value.h

index b25494072213d19ccb186bff20d295a886ee81c4..6c3ddaf7d0ab3519a370eefae866e7f3f85d85cb 100644 (file)
@@ -24,7 +24,8 @@ class BasicBlock;
 class Instruction;
 class raw_ostream;
 
-struct AssemblyAnnotationWriter {
+class AssemblyAnnotationWriter {
+public:
 
   virtual ~AssemblyAnnotationWriter();
 
index b86d1374ebc9bf11d78e4d7e1bba56c45b2d8409..ceb1ad246d59e996d56229b4ffb65c358851aa63 100644 (file)
@@ -36,7 +36,7 @@ class TypeSymbolTable;
 template<typename ValueTy> class StringMapEntry;
 typedef StringMapEntry<Value*> ValueName;
 class raw_ostream;
-struct AssemblyAnnotationWriter;
+class AssemblyAnnotationWriter;
 
 //===----------------------------------------------------------------------===//
 //                                 Value Class