@@ -216,9 +216,9 @@ void AddImplicitArgs::updateNewFuncArgs(llvm::Function* pFunc, llvm::Function* p
216216 // the new arguments, also transferring over the names as well.
217217 std::vector<std::pair<llvm::Instruction*, unsigned int >> newAddr;
218218 bool fullDebugInfo = false ;
219- IF_DEBUG_INFO ( bool lineNumbersOnly = false ;)
220- IF_DEBUG_INFO ( CodeGenContext* ctx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext ();)
221- IF_DEBUG_INFO ( DebugMetadataInfo::hasAnyDebugInfo (ctx, fullDebugInfo, lineNumbersOnly);)
219+ bool lineNumbersOnly = false ;
220+ CodeGenContext* ctx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext ();
221+ DebugMetadataInfo::hasAnyDebugInfo (ctx, fullDebugInfo, lineNumbersOnly);
222222
223223 if (fullDebugInfo)
224224 {
@@ -271,16 +271,16 @@ void AddImplicitArgs::updateNewFuncArgs(llvm::Function* pFunc, llvm::Function* p
271271 // storage location for the variable.
272272 for (auto toReplace : newAddr)
273273 {
274- IF_DEBUG_INFO ( auto d = dyn_cast<DbgDeclareInst>(toReplace.first );)
274+ auto d = dyn_cast<DbgDeclareInst>(toReplace.first );
275275
276- IF_DEBUG_INFO ( llvm::DIBuilder Builder (*pNewFunc->getParent () ));
277- IF_DEBUG_INFO ( auto DIVar = d->getVariable ();)
278- IF_DEBUG_INFO ( auto DIExpr = d->getExpression ();)
276+ llvm::DIBuilder Builder (*pNewFunc->getParent ());
277+ auto DIVar = d->getVariable ();
278+ auto DIExpr = d->getExpression ();
279279
280280 IGC_ASSERT (toReplace.second < pNewFunc->arg_size ());
281- IF_DEBUG_INFO ( Value* v = pNewFunc->arg_begin () + toReplace.second ) ;
282- IF_DEBUG_INFO ( Builder.insertDeclare (v, DIVar, DIExpr, d->getDebugLoc ().get (), d);)
283- IF_DEBUG_INFO ( d->eraseFromParent ();)
281+ Value* v = pNewFunc->arg_begin () + toReplace.second ;
282+ Builder.insertDeclare (v, DIVar, DIExpr, d->getDebugLoc ().get (), d);
283+ d->eraseFromParent ();
284284 }
285285
286286 // Set implicit argument names
0 commit comments