DI: Remove DW_TAG_arg_variable and DW_TAG_auto_variable
[oota-llvm.git] / lib / IR / DIBuilder.cpp
index 7a4c520396542cfc7b3cd20b804921a0b1fd5516..3e5a50a8952a162ffaaa8bc4eda7acdcf3da6a73 100644 (file)
@@ -613,10 +613,9 @@ static DILocalVariable *createLocalVariable(
   // the only valid scopes)?
   DIScope *Context = getNonCompileUnitScope(Scope);
 
-  dwarf::Tag Tag = ArgNo ? dwarf::DW_TAG_arg_variable : dwarf::DW_TAG_auto_variable;
-  auto *Node = DILocalVariable::get(
-      VMContext, Tag, cast_or_null<DILocalScope>(Context), Name, File, LineNo,
-      DITypeRef::get(Ty), ArgNo, Flags);
+  auto *Node =
+      DILocalVariable::get(VMContext, cast_or_null<DILocalScope>(Context), Name,
+                           File, LineNo, DITypeRef::get(Ty), ArgNo, Flags);
   if (AlwaysPreserve) {
     // The optimizer may remove local variables. If there is an interest
     // to preserve variable info in such situation then stash it in a