aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2021-02-16 15:26:41 -0800
committerSriraman Tallam <tmsriram@google.com>2021-02-16 16:27:16 -0800
commitd1a838babcc3360eb7e311006a4acd1eee61b8f2 (patch)
tree7a33f8ecf5ef79b926f7c6205ccf40cd739af7e7 /llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
parent4c3f1be84f76ef31f767d3d271ee8bdcd2be5a02 (diff)
downloadllvm-d1a838babcc3360eb7e311006a4acd1eee61b8f2.zip
llvm-d1a838babcc3360eb7e311006a4acd1eee61b8f2.tar.gz
llvm-d1a838babcc3360eb7e311006a4acd1eee61b8f2.tar.bz2
Basic block sections should enable function sections implicitly.
Basic block sections enables function sections implicitly, this is not needed and is inefficient with "=list" option. We had basic block sections enable function sections implicitly in clang. This is particularly inefficient with "=list" option as it places functions that do not have any basic block sections in separate sections. This causes unnecessary object file overhead for large applications. This patch disables this implicit behavior. It only creates function sections for those functions that require basic block sections. Further, there was an inconistent behavior with llc as llc was not turning on function sections by default. This patch makes llc and clang consistent and tests are added to check the new behavior. This is the first of two patches and this adds functionality in LLVM to create a new section for the entry block if function sections is not enabled. Differential Revision: https://reviews.llvm.org/D93876
Diffstat (limited to 'llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp')
0 files changed, 0 insertions, 0 deletions