Remove section change in function end, preventing override of function's real
authorJim Laskey <jlaskey@mac.com>
Sat, 8 Apr 2006 00:35:59 +0000 (00:35 +0000)
committerJim Laskey <jlaskey@mac.com>
Sat, 8 Apr 2006 00:35:59 +0000 (00:35 +0000)
section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27503 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index ab00a998530a91aab77a5e31588962e3c54c6164..fb4c65daab7c53e6f74f01f7b3a1084fcb791b0c 100644 (file)
@@ -2428,7 +2428,6 @@ void DwarfWriter::EndFunction() {
   EOL("Dwarf End Function");
   
   // Define end label for subprogram.
-  Asm->SwitchSection(TextSection, 0);
   EmitLabel("func_end", SubprogramCount);
   
   // Construct scopes for subprogram.