[llvm] 449b4d2 - [macho2yaml] Remove an unused variable. NFC.

Xing GUO via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 20:15:00 PDT 2020


Author: Xing GUO
Date: 2020-08-13T11:14:31+08:00
New Revision: 449b4d2a8b2ad1ae9555338a810a8fb74158d16b

URL: https://github.com/llvm/llvm-project/commit/449b4d2a8b2ad1ae9555338a810a8fb74158d16b
DIFF: https://github.com/llvm/llvm-project/commit/449b4d2a8b2ad1ae9555338a810a8fb74158d16b.diff

LOG: [macho2yaml] Remove an unused variable. NFC.

Added: 
    

Modified: 
    llvm/tools/obj2yaml/macho2yaml.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/obj2yaml/macho2yaml.cpp b/llvm/tools/obj2yaml/macho2yaml.cpp
index dec9b33ece46..d5be0acb1527 100644
--- a/llvm/tools/obj2yaml/macho2yaml.cpp
+++ b/llvm/tools/obj2yaml/macho2yaml.cpp
@@ -179,7 +179,6 @@ Expected<const char *> MachODumper::extractSections(
     if (Expected<MachOYAML::Section> S =
             constructSection(Sec, Sections.size() + 1)) {
       StringRef SecName(S->sectname);
-      DWARFYAML::Data DWARF;
       if (SecName.startswith("__debug_")) {
         // If the DWARF section cannot be successfully parsed, emit raw content
         // instead of an entry in the DWARF section of the YAML.


        


More information about the llvm-commits mailing list