Skip to content

Commit 2081aff

Browse files
committed
Reset some content to the merge-base with apple/stable/20190619
There was a bad `git merge -s ours` that changed content. Resetting content back to the merge base with: ``` $ git checkout \ $(git merge-base origin/apple/stable/20190619 origin/swift/master) \ -- llvm clang libcxx $ git rm -rf clang/test/Driver/flang/flang.f90 \ clang/test/Driver/flang/flang_ucase.F90 $ git checkout \ $(git merge-base origin/apple/stable/20190619 origin/swift/master) \ -- clang/test/Driver/flang/flang.f90 \ clang/test/Driver/flang/flang_ucase.F90 ``` The extra dance for flang is necessary because I'm not on a case-sensitive filesystem. For reference, the merge-base is d07eb80. As a side-effect, this effectively reverts ac940f1 "[TextAPI] Arch&Platform to Target". I'll get the original from apple/stable/20190619 merged in before pushing this.
1 parent 936a331 commit 2081aff

File tree

18 files changed

+221
-515
lines changed

18 files changed

+221
-515
lines changed

clang/test/Driver/flang/flang.f90

Lines changed: 0 additions & 51 deletions
This file was deleted.

clang/test/Driver/flang/flang_ucase.F90

Lines changed: 0 additions & 51 deletions
This file was deleted.

libcxx/utils/libcxx/util.py

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -253,24 +253,27 @@ def killProcessAndChildren(pid):
253253
TODO: Reimplement this without using psutil so we can
254254
remove our dependency on it.
255255
"""
256-
import psutil
257-
try:
258-
psutilProc = psutil.Process(pid)
259-
# Handle the different psutil API versions
256+
if platform.system() == 'AIX':
257+
subprocess.call('kill -kill $(ps -o pid= -L{})'.format(pid), shell=True)
258+
else:
259+
import psutil
260260
try:
261-
# psutil >= 2.x
262-
children_iterator = psutilProc.children(recursive=True)
263-
except AttributeError:
264-
# psutil 1.x
265-
children_iterator = psutilProc.get_children(recursive=True)
266-
for child in children_iterator:
261+
psutilProc = psutil.Process(pid)
262+
# Handle the different psutil API versions
267263
try:
268-
child.kill()
269-
except psutil.NoSuchProcess:
270-
pass
271-
psutilProc.kill()
272-
except psutil.NoSuchProcess:
273-
pass
264+
# psutil >= 2.x
265+
children_iterator = psutilProc.children(recursive=True)
266+
except AttributeError:
267+
# psutil 1.x
268+
children_iterator = psutilProc.get_children(recursive=True)
269+
for child in children_iterator:
270+
try:
271+
child.kill()
272+
except psutil.NoSuchProcess:
273+
pass
274+
psutilProc.kill()
275+
except psutil.NoSuchProcess:
276+
pass
274277

275278

276279
def executeCommandVerbose(cmd, *args, **kwargs):

llvm/cmake/modules/LLVMConfig.cmake.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
8686
set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
8787
set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
8888
set(LLVM_CONFIGURATION_TYPES @CMAKE_CONFIGURATION_TYPES@)
89+
set(LLVM_ENABLE_SHARED_LIBS @BUILD_SHARED_LIBS@)
8990

9091
if(NOT TARGET LLVMSupport)
9192
set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")

llvm/include/llvm/TextAPI/MachO/Architecture.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#define LLVM_TEXTAPI_MACHO_ARCHITECTURE_H
1515

1616
#include "llvm/ADT/StringRef.h"
17-
#include "llvm/ADT/Triple.h"
1817
#include "llvm/Support/raw_ostream.h"
1918

2019
namespace llvm {
@@ -40,9 +39,6 @@ StringRef getArchitectureName(Architecture Arch);
4039
/// Convert an architecture slice to a CPU Type and Subtype pair.
4140
std::pair<uint32_t, uint32_t> getCPUTypeFromArchitecture(Architecture Arch);
4241

43-
/// Convert a target to an architecture slice.
44-
Architecture mapToArchitecture(const llvm::Triple &Target);
45-
4642
raw_ostream &operator<<(raw_ostream &OS, Architecture Arch);
4743

4844
} // end namespace MachO.

llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ class ArchitectureSet {
5959

6060
ArchSetType rawValue() const { return ArchSet; }
6161

62-
bool hasX86() const {
63-
return has(AK_i386) || has(AK_x86_64) || has(AK_x86_64h);
64-
}
65-
6662
template <typename Ty>
6763
class arch_iterator
6864
: public std::iterator<std::forward_iterator_tag, Architecture, size_t> {

0 commit comments

Comments
 (0)