From 6a44af36297ae61238bb7ad1e05e77bcc5571f72 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 11 Sep 2013 17:42:27 +0000 Subject: Give internal classes hidden visibility. Worth 100k on a linux/x86_64 Release+Asserts clang. llvm-svn: 190534 --- llvm/lib/IR/ConstantsContext.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'llvm/lib/IR/ConstantsContext.h') diff --git a/llvm/lib/IR/ConstantsContext.h b/llvm/lib/IR/ConstantsContext.h index 32bed95e212..b4f0a53210f 100644 --- a/llvm/lib/IR/ConstantsContext.h +++ b/llvm/lib/IR/ConstantsContext.h @@ -31,7 +31,7 @@ struct ConstantTraits; /// UnaryConstantExpr - This class is private to Constants.cpp, and is used /// behind the scenes to implement unary constant exprs. -class UnaryConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY UnaryConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -48,7 +48,7 @@ public: /// BinaryConstantExpr - This class is private to Constants.cpp, and is used /// behind the scenes to implement binary constant exprs. -class BinaryConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY BinaryConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -69,7 +69,7 @@ public: /// SelectConstantExpr - This class is private to Constants.cpp, and is used /// behind the scenes to implement select constant exprs. -class SelectConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY SelectConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -90,7 +90,7 @@ public: /// ExtractElementConstantExpr - This class is private to /// Constants.cpp, and is used behind the scenes to implement /// extractelement constant exprs. -class ExtractElementConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY ExtractElementConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -111,7 +111,7 @@ public: /// InsertElementConstantExpr - This class is private to /// Constants.cpp, and is used behind the scenes to implement /// insertelement constant exprs. -class InsertElementConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY InsertElementConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -133,7 +133,7 @@ public: /// ShuffleVectorConstantExpr - This class is private to /// Constants.cpp, and is used behind the scenes to implement /// shufflevector constant exprs. -class ShuffleVectorConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY ShuffleVectorConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -158,7 +158,7 @@ public: /// ExtractValueConstantExpr - This class is private to /// Constants.cpp, and is used behind the scenes to implement /// extractvalue constant exprs. -class ExtractValueConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY ExtractValueConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -184,7 +184,7 @@ public: /// InsertValueConstantExpr - This class is private to /// Constants.cpp, and is used behind the scenes to implement /// insertvalue constant exprs. -class InsertValueConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY InsertValueConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -211,7 +211,7 @@ public: /// GetElementPtrConstantExpr - This class is private to Constants.cpp, and is /// used behind the scenes to implement getelementpr constant exprs. -class GetElementPtrConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY GetElementPtrConstantExpr : public ConstantExpr { virtual void anchor(); GetElementPtrConstantExpr(Constant *C, ArrayRef IdxList, Type *DestTy); @@ -232,7 +232,7 @@ public: // CompareConstantExpr - This class is private to Constants.cpp, and is used // behind the scenes to implement ICmp and FCmp constant expressions. This is // needed in order to store the predicate value for these instructions. -class CompareConstantExpr : public ConstantExpr { +class LLVM_LIBRARY_VISIBILITY CompareConstantExpr : public ConstantExpr { virtual void anchor(); void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION; public: @@ -313,7 +313,7 @@ struct OperandTraits : }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CompareConstantExpr, Value) -struct ExprMapKeyType { +struct LLVM_LIBRARY_VISIBILITY ExprMapKeyType { ExprMapKeyType(unsigned opc, ArrayRef ops, unsigned short flags = 0, @@ -349,7 +349,7 @@ struct ExprMapKeyType { } }; -struct InlineAsmKeyType { +struct LLVM_LIBRARY_VISIBILITY InlineAsmKeyType { InlineAsmKeyType(StringRef AsmString, StringRef Constraints, bool hasSideEffects, bool isAlignStack, InlineAsm::AsmDialect asmDialect) @@ -512,7 +512,7 @@ struct ConstantKeyData { template -class ConstantUniqueMap { +class LLVM_LIBRARY_VISIBILITY ConstantUniqueMap { public: typedef std::pair MapKey; typedef std::map MapTy; @@ -648,7 +648,7 @@ public: // Unique map for aggregate constants template -class ConstantAggrUniqueMap { +class LLVM_LIBRARY_VISIBILITY ConstantAggrUniqueMap { public: typedef ArrayRef Operands; typedef std::pair LookupKey; -- cgit v1.2.3