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)
commit3b75cfe17930b392b1d6ba8f6fd432833c159472
treebfd22953395b163db86c2a632a0e76562328c73e
parentfb7982e95aeac50038b6370d2f451f6f9313d26e
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229586 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
include/llvm/Target/TargetLoweringObjectFile.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/Target/TargetLoweringObjectFile.cpp
test/CodeGen/X86/global-sections.ll