aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-08 17:44:21 +0000
committerChris Lattner <sabre@nondot.org>2004-06-08 17:44:21 +0000
commit85b0195f0e619d7151824a08f33e6754a451e7fc (patch)
tree6f314b2cca682ad158a8168b51e9c0cd83010b1f
parentef39012738a36bd7dd0a51fd94810426978c9455 (diff)
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
-rw-r--r--include/llvm/AbstractTypeUser.h2
-rw-r--r--include/llvm/Instruction.h2
-rw-r--r--include/llvm/Module.h3
-rw-r--r--include/llvm/Pass.h2
-rw-r--r--include/llvm/Value.h3
-rw-r--r--include/llvm/iPHINode.h2
6 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h
index f039eb8586..b936b45554 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 caba4afd8b..86f2a056cb 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -20,7 +20,7 @@
namespace llvm {
-class AssemblyAnnotationWriter;
+struct AssemblyAnnotationWriter;
template<typename SC> struct ilist_traits;
template<typename ValueSubClass, typename ItemParentClass, typename SymTabClass,
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 5c27d3b55f..a0f63fb852 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -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;
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 63dbcb2372..96cd263e21 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 3a58a44da9..6c899a0cd5 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 22ba9a0578..0d577ccabd 100644
--- a/include/llvm/iPHINode.h
+++ b/include/llvm/iPHINode.h
@@ -18,7 +18,7 @@
namespace llvm {
-class BasicBlock;
+struct BasicBlock;
//===----------------------------------------------------------------------===//
// PHINode Class