diff options
-rw-r--r-- | docs/SourceLevelDebugging.rst | 4 | ||||
-rw-r--r-- | include/llvm/Support/Dwarf.h | 4 | ||||
-rw-r--r-- | lib/IR/DebugInfo.cpp | 1 | ||||
-rw-r--r-- | lib/Support/Dwarf.cpp | 1 |
4 files changed, 3 insertions, 7 deletions
diff --git a/docs/SourceLevelDebugging.rst b/docs/SourceLevelDebugging.rst index f7dfa4a4fe..933534fb49 100644 --- a/docs/SourceLevelDebugging.rst +++ b/docs/SourceLevelDebugging.rst @@ -585,12 +585,10 @@ value of the tag depends on the usage of the variable: DW_TAG_auto_variable = 256 DW_TAG_arg_variable = 257 - DW_TAG_return_variable = 258 An auto variable is any variable declared in the body of the function. An argument variable is any variable that appears as a formal argument to the -function. A return variable is used to track the result of a function and has -no source correspondent. +function. The context is either the subprogram or block where the variable is defined. Name the source variable name. Context and line indicate where the variable diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h index 697ef45634..22c181e4ce 100644 --- a/include/llvm/Support/Dwarf.h +++ b/include/llvm/Support/Dwarf.h @@ -37,7 +37,7 @@ enum { namespace dwarf { //===----------------------------------------------------------------------===// -// Dwarf constants as gleaned from the DWARF Debugging Information Format V.3 +// Dwarf constants as gleaned from the DWARF Debugging Information Format V.4 // reference manual http://dwarf.freestandards.org . // @@ -50,7 +50,7 @@ enum llvm_dwarf_constants { DW_TAG_auto_variable = 0x100, // Tag for local (auto) variables. DW_TAG_arg_variable = 0x101, // Tag for argument variables. - DW_TAG_return_variable = 0x102, // Tag for return variables. + // 0x102 - Unused. DW_TAG_vector_type = 0x103, // Tag for vector types. DW_TAG_user_base = 0x1000, // Recommended base for user tags. diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index b5e1d177df..6ca692e274 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -212,7 +212,6 @@ bool DIDescriptor::isVariable() const { switch (getTag()) { case dwarf::DW_TAG_auto_variable: case dwarf::DW_TAG_arg_variable: - case dwarf::DW_TAG_return_variable: return true; default: return false; diff --git a/lib/Support/Dwarf.cpp b/lib/Support/Dwarf.cpp index 839dd84a32..8a96048bb7 100644 --- a/lib/Support/Dwarf.cpp +++ b/lib/Support/Dwarf.cpp @@ -80,7 +80,6 @@ const char *llvm::dwarf::TagString(unsigned Tag) { case DW_TAG_hi_user: return "DW_TAG_hi_user"; case DW_TAG_auto_variable: return "DW_TAG_auto_variable"; case DW_TAG_arg_variable: return "DW_TAG_arg_variable"; - case DW_TAG_return_variable: return "DW_TAG_return_variable"; case DW_TAG_vector_type: return "DW_TAG_vector_type"; case DW_TAG_rvalue_reference_type: return "DW_TAG_rvalue_reference_type"; case DW_TAG_template_alias: return "DW_TAG_template_alias"; |