aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Module.h
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 /include/llvm/Module.h
parentef39012738a36bd7dd0a51fd94810426978c9455 (diff)
downloadexternal_llvm-85b0195f0e619d7151824a08f33e6754a451e7fc.zip
external_llvm-85b0195f0e619d7151824a08f33e6754a451e7fc.tar.gz
external_llvm-85b0195f0e619d7151824a08f33e6754a451e7fc.tar.bz2
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
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 5c27d3b..a0f63fb 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;