aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/llvm-0001-fix-shared-build.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-05-22 13:43:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-22 13:43:22 +0000
commit70622e24effd147a1d3e6206607f73ccdba33e8f (patch)
tree9f6ad37ec2977a564c47819340add467227c9dc0 /main/llvm/llvm-0001-fix-shared-build.patch
parent95623fb7c14e2129b8e4f39e947d99dc85d3e158 (diff)
downloadaports-70622e24effd147a1d3e6206607f73ccdba33e8f.tar.bz2
aports-70622e24effd147a1d3e6206607f73ccdba33e8f.tar.xz
Revert "main/llvm: update patchset, switch to cmake, perform two-stage build with a minimal bootstrap compile of clang, add clang extras, update package list to split out clang documentation"
Diffstat (limited to 'main/llvm/llvm-0001-fix-shared-build.patch')
-rw-r--r--main/llvm/llvm-0001-fix-shared-build.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/main/llvm/llvm-0001-fix-shared-build.patch b/main/llvm/llvm-0001-fix-shared-build.patch
deleted file mode 100644
index ceeda806d7..0000000000
--- a/main/llvm/llvm-0001-fix-shared-build.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 0d03d2ea17b66d8cb0f6ca5f2181237228535845 Mon Sep 17 00:00:00 2001
-From: Sanjoy Das <sanjoy at azulsystems.com>
-Date: Thu Jun 19 15:38:02 2014 -0700
-Subject: [PATCH 1/3] Fix the --enable-shared build.
-
-Currently a build configured with ./configure --enable-shared breaks
-with an undefined "llvm::cl::parser<llvm::PassInfo
-const*>::getOption(unsigned int) const" symbol when linking opt. This
-body for this symbol gets emitted into Pass.o (along with the destructor
-for PassNameParser), but gets linked into libLLVM-3.5svn.so with local
-visibility, causing the link error.
-
-This fix uses the existing EXTERN_TEMPLATE machinery to force a globally
-visible definition for the functions in parser<const PassInfo *> into
-Pass.o.
----
- include/llvm/IR/LegacyPassNameParser.h | 2 ++
- lib/IR/Pass.cpp | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/include/llvm/IR/LegacyPassNameParser.h b/include/llvm/IR/LegacyPassNameParser.h
-index e2e4912..a07e3fd 100644
---- a/include/llvm/IR/LegacyPassNameParser.h
-+++ b/include/llvm/IR/LegacyPassNameParser.h
-@@ -95,6 +95,8 @@ private:
- }
- };
-
-+EXTERN_TEMPLATE_INSTANTIATION(class cl::parser<const PassInfo *>);
-+
- ///===----------------------------------------------------------------------===//
- /// FilteredPassNameParser class - Make use of the pass registration
- /// mechanism to automatically add a command line argument to opt for
-diff --git a/lib/IR/Pass.cpp b/lib/IR/Pass.cpp
-index 91d86ae..00ce223 100644
---- a/lib/IR/Pass.cpp
-+++ b/lib/IR/Pass.cpp
-@@ -234,6 +234,8 @@ PassNameParser::~PassNameParser() {
- // attempting to remove the registration listener is an error.
- }
-
-+TEMPLATE_INSTANTIATION(class cl::parser<const PassInfo *>);
-+
- //===----------------------------------------------------------------------===//
- // AnalysisUsage Class Implementation
- //
---
-2.1.4
-