[llvm-commits] CVS: llvm/lib/Reoptimizer/Inst/lib/ElfReader.cpp

Joel Stanley jstanley at cs.uiuc.edu
Sun May 4 16:12:01 PDT 2003


Changes in directory llvm/lib/Reoptimizer/Inst/lib:

ElfReader.cpp updated: 1.10 -> 1.11

---
Log message:




---
Diffs of the changes:

Index: llvm/lib/Reoptimizer/Inst/lib/ElfReader.cpp
diff -u llvm/lib/Reoptimizer/Inst/lib/ElfReader.cpp:1.10 llvm/lib/Reoptimizer/Inst/lib/ElfReader.cpp:1.11
--- llvm/lib/Reoptimizer/Inst/lib/ElfReader.cpp:1.10	Sun May  4 15:05:19 2003
+++ llvm/lib/Reoptimizer/Inst/lib/ElfReader.cpp	Sun May  4 16:18:52 2003
@@ -294,15 +294,13 @@
             m_pSymHdr = secHdr;
             m_pSymSec = currScn;
         }
-        else if(SHT_PROGBITS == secHdr->sh_type) {
-            if(!codeSegmentFound) {
-                // Found section marked as "program-defined".  Obtain section name and see
-                // if it matches the name of the code segment.
-                char* sectionName = m_pSecNameTab + secHdr->sh_name;
-                if(sm_codeSegmentName == sectionName) {
-                    m_codeSecIdx = elf_ndxscn(currScn);
-                    codeSegmentFound = true;
-                }
+        else if(SHT_PROGBITS == secHdr->sh_type && !codeSegmentFound) {
+            // Found section marked as "program-defined".  Obtain section name and see
+            // if it matches the name of the code segment.
+            char* sectionName = m_pSecNameTab + secHdr->sh_name;
+            if(sm_codeSegmentName == sectionName) {
+                m_codeSecIdx = elf_ndxscn(currScn);
+                codeSegmentFound = true;
             }
         }
         // NB: May need to look for SHT_DYNSYM here later on.





More information about the llvm-commits mailing list