From 64ddefb90cf440df7879d1f2f9cc61de71e0f181 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 13 Oct 2017 18:14:42 -0700 Subject: Move reflection JSON generation into separate text fixture (#211) Move reflection JSON generation into separate test fixture --- source/slang/slang.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 65abbb3f2..66ff9e429 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -708,17 +708,7 @@ SLANG_API void spSetCodeGenTarget( SlangCompileRequest* request, int target) { - if (target == SLANG_REFLECTION_JSON) - { - // HACK: We special case this because reflection JSON is actually - // an additional output step that layers on top of an existing - // target - REQ(request)->extraTarget = Slang::CodeGenTarget::ReflectionJSON; - } - else - { - REQ(request)->Target = (Slang::CodeGenTarget)target; - } + REQ(request)->Target = (Slang::CodeGenTarget)target; } SLANG_API void spSetPassThrough( -- cgit v1.2.3