From fea6100aa975c22b2cf55ff4afb93a9116468c33 Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 12 Sep 2014 09:42:39 -0400 Subject: [PATCH] P4 to Git Change 1076356 by smekhano@rampitec-HSA on 2014/09/12 09:35:57 ECR #333753 - HSA HLC: remove code changing the default filetype which is set by an external tool such as llc Effectively llc will produce text hsail file by default as a standard llc behaviour. Use -filetype=obj to obtain brig. Note, test_driver.pl is already patched to preserve old behaviour. Testing: smoke, smoke_clang, precheckin Reviewed by Nikolay Haustov Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/codegen.cpp#58 edit ... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILTargetMachine.cpp#33 edit --- rocclr/compiler/lib/backends/common/codegen.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/rocclr/compiler/lib/backends/common/codegen.cpp b/rocclr/compiler/lib/backends/common/codegen.cpp index 675fd86d67..3e1fa16653 100644 --- a/rocclr/compiler/lib/backends/common/codegen.cpp +++ b/rocclr/compiler/lib/backends/common/codegen.cpp @@ -24,18 +24,6 @@ using namespace amdcl; using namespace llvm; -#ifdef WITH_TARGET_HSAIL -// Variable FileType are checked by HSAILTargetMachine, but only -// created in llc.exe. Create it here for online compilation path. -llvm::cl::opt -FileType("filetype", cl::init(TargetMachine::CGFT_ObjectFile), - cl::values( - clEnumValN(TargetMachine::CGFT_AssemblyFile, "asm", ""), - clEnumValN(TargetMachine::CGFT_ObjectFile, "obj", ""), - clEnumValN(TargetMachine::CGFT_Null, "null", ""), - clEnumValEnd)); -#endif - static std::string aclGetCodegenName(const aclTargetInfo &tgtInfo) { assert(tgtInfo.arch_id <= aclLast && "Unknown device id!");