forked from OSchip/llvm-project
[SPIR] Remove an assert mandating SPIR for OpenCL sources only.
SPIR target can be used for C/C++ inputs too (i.e. in OpenCL compatible mode for the libs creation). Patch by Neil Henning! Review: http://reviews.llvm.org/D19478 llvm-svn: 267561
This commit is contained in:
parent
9092700683
commit
0937a7d814
|
@ -7442,7 +7442,6 @@ public:
|
|||
/// Emit SPIR specific metadata: OpenCL and SPIR version.
|
||||
void SPIRTargetCodeGenInfo::emitTargetMD(const Decl *D, llvm::GlobalValue *GV,
|
||||
CodeGen::CodeGenModule &CGM) const {
|
||||
assert(CGM.getLangOpts().OpenCL && "SPIR is only for OpenCL");
|
||||
llvm::LLVMContext &Ctx = CGM.getModule().getContext();
|
||||
llvm::Type *Int32Ty = llvm::Type::getInt32Ty(Ctx);
|
||||
llvm::Module &M = CGM.getModule();
|
||||
|
|
Loading…
Reference in New Issue