This is an archive of the discontinued LLVM Phabricator instance.

[libc++abi] Remove unnecessary atomic_support.h header from libc++abi
ClosedPublic

Authored by ldionne on Sep 20 2021, 12:56 PM.

Details

Reviewers
chandlerc
ldionne
Group Reviewers
Restricted Project
Restricted Project
Commits
rGf8b1cc365786: [libc++abi] Remove unnecessary atomic_support.h header from libc++abi
Summary

The file was a duplicate of atomic_support.h in libc++. Since we now
require the libc++ sources in order to build libc++abi, it's OK to
remove this duplication.

Thanks to @chandlerc for noticing this.

Diff Detail

Event Timeline

ldionne requested review of this revision.Sep 20 2021, 12:56 PM
ldionne created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2021, 12:56 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
chandlerc accepted this revision.Sep 20 2021, 12:59 PM

LGTM.

As mentioned in chat, there are other includes of uncopied files: https://github.com/llvm/llvm-project/blob/main/libcxxabi/src/stdlib_stdexcept.cpp#L17

ldionne updated this revision to Diff 373701.Sep 20 2021, 12:59 PM

Make comment consistent

ldionne accepted this revision.Sep 20 2021, 12:59 PM

I'll ship this once CI passes.

This revision is now accepted and ready to land.Sep 20 2021, 12:59 PM
ldionne updated this revision to Diff 373997.Sep 21 2021, 11:38 AM

Try to fix libc++abi tests.

ldionne updated this revision to Diff 374036.Sep 21 2021, 2:40 PM

Fix the single-threaded build and the modules build.

@chandlerc I am standardizing around using #include "include/FILE.h" // from libc++ instead of
#include "src/include/FILE.h" because having libc++'s root in the header search path breaks
modular builds (due to conflicting modulemaps in the generated <build>/include/c++/v1 and <src>/include).

Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2021, 2:40 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a subscriber: mgorny. · View Herald Transcript
This revision now requires review to proceed.Sep 21 2021, 2:40 PM
ldionne accepted this revision.Sep 21 2021, 4:55 PM
This revision is now accepted and ready to land.Sep 21 2021, 4:55 PM
libcxxabi/src/cxa_guard_impl.h