Add r228939 back with a fix.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Feb 2015 23:34:51 +0000 (23:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Feb 2015 23:34:51 +0000 (23:34 +0000)
commitdf19519800168690eeb5fc92f366820019c62217
tree922badcf72f03c3190eba57a94f282ecf43a5b0b
parentc0a2279099b2c525967e104123f404ff24f26499
Add r228939 back with a fix.

The problem in the original patch was not switching back to .text after printing
an eh table.

Original message:

On ELF, put PIC jump tables in a non executable section.

Fixes PR22558.

llvm-svn: 229586
llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
llvm/include/llvm/Target/TargetLoweringObjectFile.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/Target/TargetLoweringObjectFile.cpp
llvm/test/CodeGen/X86/global-sections.ll