Skip to content

Commit 56552f1

Browse files
committed
update
1 parent 05c09d3 commit 56552f1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

clang/lib/Driver/ToolChains/AMDGPU.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,6 @@ void amdgpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
625625
CmdArgs.push_back("-shared");
626626
}
627627

628-
llvm::errs() << JA.getOffloadingDeviceKind() << "\n";
629628
addLinkerCompressDebugSectionsOption(getToolChain(), Args, CmdArgs);
630629
Args.AddAllArgs(CmdArgs, options::OPT_L);
631630
getToolChain().AddFilePathLibArgs(Args, CmdArgs);

clang/test/Driver/hip-toolchain-rdc.hip

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,17 @@
165165
// Check --flto-partitions
166166

167167
// RUN: %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \
168-
// RUN: -L. -flto --flto-partitions=42 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS %s
168+
// RUN: -L. -foffload-lto %s 2>&1 | FileCheck -check-prefix=LTO_DEFAULT %s
169+
// LTO_DEFAULT: lld{{.*}}"--lto-partitions=8"
170+
171+
// RUN: %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \
172+
// RUN: -L. -foffload-lto --flto-partitions=42 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS %s
169173
// LTO_PARTS: lld{{.*}}"--lto-partitions=42"
170174

171175
// RUN: not %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \
172-
// RUN: -L. -flto --flto-partitions=a %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV0 %s
176+
// RUN: -L. -foffload-lto --flto-partitions=a %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV0 %s
173177
// LTO_PARTS_INV0: clang: error: invalid integral value 'a' in '--flto-partitions=a'
174178

175179
// RUN: not %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \
176-
// RUN: -L. -flto --flto-partitions=0 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV1 %s
180+
// RUN: -L. -foffload-lto --flto-partitions=0 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV1 %s
177181
// LTO_PARTS_INV1: clang: error: invalid integral value '0' in '--flto-partitions=0'

0 commit comments

Comments
 (0)