| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This will allow using the functionality from other linkers. It is also
a prerequisite for sharing the error logging code.
Reviewers: ruiu
Reviewed By: ruiu
Subscribers: emaste, mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D38822
llvm-svn: 315725
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I think it is not defined what would happen to detached threads
when the main thread tries to exit. That means it was not guaranteed
that unlinkAsync correctly removes a temporary file. It was also
reported that this unlinkAsync caused a crash on Windows.
This patch adds a few new functions so that the main thread always
waits for non-main threads before exitting.
I don't actually like the new two functions, runBackground and
waitForBackgroundThreads, because it looks like it is a bit
overdesigned. After all, what we are doing with these functions
is to just remove a file.
An alternative would be to do fork(2) and make the child process
remove a file asynchronously. However, it has its own problems.
Correctly forking and reclaiming a resource using waitpid(2) is not
doable unless we know our process-wide settings (such as signal mask),
but we can't make any assumption on it when lld is embedded to other
process. So I chose to stick with threads instead of multi-processes.
Differential Revision: https://reviews.llvm.org/D38571
llvm-svn: 315033
|
|
|
|
|
|
|
|
| |
Also remove unused include of raw_ostream.h
Differential Revision: https://reviews.llvm.org/D37048
llvm-svn: 311587
|
|
|
|
|
|
|
|
| |
Makes code a bit more convinent to write/read.
Differential revision: https://reviews.llvm.org/D36089
llvm-svn: 310040
|
|
|
|
| |
llvm-svn: 308297
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D33024
llvm-svn: 302748
|
|
|
|
| |
llvm-svn: 302719
|
|
|
|
|
|
| |
So that it is clear that the function is a wrapper for for_each_n.
llvm-svn: 302718
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D33016
llvm-svn: 302613
|
|
|
|
| |
llvm-svn: 298669
|
|
|
|
|
|
|
| |
"Parallel" is the most important aspect of the functions,
so we shouldn't omit that.
llvm-svn: 298557
|
|
|
|
| |
llvm-svn: 288609
|
|
|
|
| |
llvm-svn: 288606
|
|
llvm-svn: 288599
|