Apparently a particular vendor compiler uses the struct/class tag to MANGLE
authorChris Lattner <sabre@nondot.org>
Tue, 8 Jun 2004 17:44:21 +0000 (17:44 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 8 Jun 2004 17:44:21 +0000 (17:44 +0000)
symbols with.  Therefore, if you do not use struct/class consistently, you can
get LINK ERRORS.  grr.

This fixes the link errors for libsupport and vmcore.

-Chris

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14070 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/AbstractTypeUser.h
include/llvm/Instruction.h
include/llvm/Module.h
include/llvm/Pass.h
include/llvm/Value.h
include/llvm/iPHINode.h

index f039eb85862360f765080e90f705ad29eb09a060..b936b4555403cacdfba301de80f064c4396200a7 100644 (file)
@@ -39,7 +39,7 @@
 
 namespace llvm {
 
-class Type;
+struct Type;
 class DerivedType;
 
 class AbstractTypeUser {
index caba4afd8b44d31297f561b4b486a271a7a46677..86f2a056cb975df4055ed6213d559536375f174a 100644 (file)
@@ -20,7 +20,7 @@
 
 namespace llvm {
 
-class AssemblyAnnotationWriter;
+struct AssemblyAnnotationWriter;
 
 template<typename SC> struct ilist_traits;
 template<typename ValueSubClass, typename ItemParentClass, typename SymTabClass,
index 5c27d3b55f13d8468519336a375931691b87b0fd..a0f63fb852c6f6e9c56df06efffea52c5eb27256 100644 (file)
@@ -43,7 +43,8 @@ template<> struct ilist_traits<GlobalVariable>
   static iplist<GlobalVariable> &getList(Module *M);
 };
 
-struct Module {
+class Module {
+public:
   typedef iplist<GlobalVariable> GlobalListType;
   typedef iplist<Function> FunctionListType;
 
index 63dbcb23722a8b1ba0fe1a72c3ea48e1ad90d7a3..96cd263e21789c5478164814079fdcb22630f1ea 100644 (file)
@@ -38,7 +38,7 @@
 namespace llvm {
 
 class Value;
-class BasicBlock;
+struct BasicBlock;
 class Function;
 class Module;
 class AnalysisUsage;
index 3a58a44da9efc985387b48b683075f53b39779e2..6c899a0cd5952622024c91f5952c000c61aebfc2 100644 (file)
 
 namespace llvm {
 
-class Type;
 class Constant;
 class Argument;
 class Instruction;
-class BasicBlock;
+struct BasicBlock;
 class GlobalValue;
 class Function;
 class GlobalVariable;
index 22ba9a0578ddef577762ea770045cef9a09c6ec4..0d577ccabd90228b31c7d01b157f4061709cc8ea 100644 (file)
@@ -18,7 +18,7 @@
 
 namespace llvm {
 
-class BasicBlock;
+struct BasicBlock;
 
 //===----------------------------------------------------------------------===//
 //                               PHINode Class