Fix compiling issue exposed by opencl TC build

1.Some files are not built in rocclr so the issues are
not found in rocclr build. But the issues are exposed
in TC build.
2.Clear unused codes in test cmake file.

Change-Id: I1ad4decdf4df5237b93e1ea2547eb39a19f7dc4a


[ROCm/clr commit: 65075e72f1]
このコミットが含まれているのは:
Tao Sang authored and Tao Sang committed 2020-09-08 12:40:22 -04:00
1 親 eaf65e59ae
コミット c6a000f618
4ファイル変更
+8 -14

検索条件に一致するファイルはありません

+1 -2
ファイルの表示
@@ -244,8 +244,7 @@ bool NullProgram::compileImpl(const std::string& src,
clBinary()->elfOut()->addSection(amd::Elf::SOURCE, sourceCode.data(), sourceCode.size());
}
if (clBinary()->saveLLVMIR()) {
clBinary()->elfOut()->addSection(amd::Elf::LLVMIR, llvmBinary_.data(), llvmBinary_.size(),
false);
clBinary()->elfOut()->addSection(amd::Elf::LLVMIR, llvmBinary_.data(), llvmBinary_.size());
// store the original compile options
clBinary()->storeCompileOptions(compileOptions_);
}