summaryrefslogtreecommitdiff
path: root/lib/VMCore/Type.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-28 21:38:54 +0000
committerChris Lattner <sabre@nondot.org>2006-06-28 21:38:54 +0000
commitf190d3805519beb3ec9afe4adfda30e82dcd2995 (patch)
tree34a1c3e371e24cc48eceb410d06410edd0155d0a /lib/VMCore/Type.cpp
parentc521409d4cf6c8edf4900dda36f6ef9b953f8951 (diff)
downloadllvm-f190d3805519beb3ec9afe4adfda30e82dcd2995.tar.gz
llvm-f190d3805519beb3ec9afe4adfda30e82dcd2995.tar.bz2
llvm-f190d3805519beb3ec9afe4adfda30e82dcd2995.tar.xz
Use hidden visibility to reduce the sizes of some .o files. This chops 60K off a release llvm-dis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r--lib/VMCore/Type.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index a96efad744..a393556bc6 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -20,6 +20,7 @@
#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/MathExtras.h"
+#include "llvm/Support/Visibility.h"
#include <algorithm>
#include <iostream>
using namespace llvm;
@@ -366,7 +367,7 @@ const Type *StructType::getTypeAtIndex(const Value *V) const {
//===----------------------------------------------------------------------===//
namespace {
- struct PrimType : public Type {
+ struct VISIBILITY_HIDDEN PrimType : public Type {
PrimType(const char *S, TypeID ID) : Type(S, ID) {}
};
}