mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-02 15:26:29 +00:00

The AMDGPU target only emits shared libraries currently. This patch changes the handling of the PIC level to be managed in the AMDGPUToolChain rather than having a special case for it. This causes `--target=amdgcn--` to no longer set the PIC. This should be an acceptable change since that doesn't use a correct toolchain anyway. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D142999
6 lines
317 B
Common Lisp
6 lines
317 B
Common Lisp
// RUN: %clang -### --target=amdgcn-amd-amdhsa -mcpu=gfx803 %s 2>&1 | FileCheck %s
|
|
// RUN: %clang -### --target=amdgcn-amd-amdpal -mcpu=gfx803 %s 2>&1 | FileCheck %s
|
|
// RUN: %clang -### --target=amdgcn-amd-mesa3d -mcpu=gfx803 %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: "-cc1"{{.*}} "-mrelocation-model" "pic" "-pic-level" "2"
|