[llvm-commits] [dragonegg] r171950 - /dragonegg/trunk/src/Convert.cpp

Eric Christopher echristo at gmail.com
Tue Jan 8 20:01:23 PST 2013


Author: echristo
Date: Tue Jan  8 22:01:23 2013
New Revision: 171950

URL: http://llvm.org/viewvc/llvm-project?rev=171950&view=rev
Log:
Attempt to fix dragonegg for the removal of DW_TAG_return_variable.

Nothing was conditional upon it in the backend previously and it shouldn't
be necessary, move it to auto variable instead.

Modified:
    dragonegg/trunk/src/Convert.cpp

Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=171950&r1=171949&r2=171950&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Tue Jan  8 22:01:23 2013
@@ -782,7 +782,7 @@
       TheTreeToLLVM->set_decl_local(ResultDecl, Tmp);
       if (TheDebugInfo && !DECL_IGNORED_P(FunctionDecl)) {
         TheDebugInfo->EmitDeclare(ResultDecl,
-                                  dwarf::DW_TAG_return_variable,
+                                  dwarf::DW_TAG_auto_variable,
                                   "agg.result", RetTy, Tmp,
                                   Builder);
       }
@@ -2446,12 +2446,9 @@
     }
 
   if (EmitDebugInfo()) {
-    if (DECL_NAME(decl)) {
+    if (DECL_NAME(decl) || isa<RESULT_DECL>(decl)) {
       TheDebugInfo->EmitDeclare(decl, dwarf::DW_TAG_auto_variable,
                                 AI->getName(), TREE_TYPE(decl), AI, Builder);
-    } else if (isa<RESULT_DECL>(decl)) {
-      TheDebugInfo->EmitDeclare(decl, dwarf::DW_TAG_return_variable,
-                                AI->getName(), TREE_TYPE(decl), AI, Builder);
     }
   }
 }





More information about the llvm-commits mailing list