diff options
author | Mitch Tishmack <mitch.tishmack@gmail.com> | 2016-07-14 21:53:19 -0500 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-25 20:29:38 +0200 |
commit | df54f12335b3c9c456f29258ae7a98d14d7bdcf4 (patch) | |
tree | d432b55d7aae5ed38609ea93bfab7cd5d8887f67 /testing/llvm3.7/llvm-nm-workaround.patch | |
parent | 199658c24c0fa59006887f974705208ef0dbb25f (diff) | |
download | aports-df54f12335b3c9c456f29258ae7a98d14d7bdcf4.tar.bz2 aports-df54f12335b3c9c456f29258ae7a98d14d7bdcf4.tar.xz |
testing/llvm3.7: new aport
Diffstat (limited to 'testing/llvm3.7/llvm-nm-workaround.patch')
-rw-r--r-- | testing/llvm3.7/llvm-nm-workaround.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/llvm3.7/llvm-nm-workaround.patch b/testing/llvm3.7/llvm-nm-workaround.patch new file mode 100644 index 0000000000..5755e57ff3 --- /dev/null +++ b/testing/llvm3.7/llvm-nm-workaround.patch @@ -0,0 +1,27 @@ +From https://llvm.org/bugs/show_bug.cgi?id=24115 + +diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp +index e7ee312..b9e4779 100644 +--- a/tools/llvm-nm/llvm-nm.cpp ++++ b/tools/llvm-nm/llvm-nm.cpp +@@ -486,7 +486,7 @@ static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName, + std::string ArchiveName, + std::string ArchitectureName) { + if (!NoSort) { +- std::function<bool(const NMSymbol &, const NMSymbol &)> Cmp; ++ bool (*Cmp)(const NMSymbol &, const NMSymbol &); + if (NumericSort) + Cmp = compareSymbolAddress; + else if (SizeSort) +@@ -495,8 +495,9 @@ static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName, + Cmp = compareSymbolName; + + if (ReverseSort) +- Cmp = [=](const NMSymbol &A, const NMSymbol &B) { return Cmp(B, A); }; +- std::sort(SymbolList.begin(), SymbolList.end(), Cmp); ++ std::sort(SymbolList.begin(), SymbolList.end(), [=](const NMSymbol &A, const NMSymbol &B) { return Cmp(B, A); }); ++ else ++ std::sort(SymbolList.begin(), SymbolList.end(), Cmp); + } + + if (!PrintFileName) { |