From 85b0195f0e619d7151824a08f33e6754a451e7fc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 8 Jun 2004 17:44:21 +0000 Subject: [PATCH] Apparently a particular vendor compiler uses the struct/class tag to MANGLE 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 | 2 +- include/llvm/Instruction.h | 2 +- include/llvm/Module.h | 3 ++- include/llvm/Pass.h | 2 +- include/llvm/Value.h | 3 +-- include/llvm/iPHINode.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h index f039eb85862..b936b455540 100644 --- a/include/llvm/AbstractTypeUser.h +++ b/include/llvm/AbstractTypeUser.h @@ -39,7 +39,7 @@ namespace llvm { -class Type; +struct Type; class DerivedType; class AbstractTypeUser { diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index caba4afd8b4..86f2a056cb9 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -20,7 +20,7 @@ namespace llvm { -class AssemblyAnnotationWriter; +struct AssemblyAnnotationWriter; template struct ilist_traits; template struct ilist_traits static iplist &getList(Module *M); }; -struct Module { +class Module { +public: typedef iplist GlobalListType; typedef iplist FunctionListType; diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 63dbcb23722..96cd263e217 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -38,7 +38,7 @@ namespace llvm { class Value; -class BasicBlock; +struct BasicBlock; class Function; class Module; class AnalysisUsage; diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 3a58a44da9e..6c899a0cd59 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -24,11 +24,10 @@ namespace llvm { -class Type; class Constant; class Argument; class Instruction; -class BasicBlock; +struct BasicBlock; class GlobalValue; class Function; class GlobalVariable; diff --git a/include/llvm/iPHINode.h b/include/llvm/iPHINode.h index 22ba9a0578d..0d577ccabd9 100644 --- a/include/llvm/iPHINode.h +++ b/include/llvm/iPHINode.h @@ -18,7 +18,7 @@ namespace llvm { -class BasicBlock; +struct BasicBlock; //===----------------------------------------------------------------------===// // PHINode Class