Stop resetting SanitizeAddress in TargetMachine::resetTargetOptions. NFC.
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 15 May 2015 00:20:44 +0000 (00:20 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 15 May 2015 00:20:44 +0000 (00:20 +0000)
commit634e01a3e5f7d8897979597b278d9b6bced56f76
treeb08b52bda9f6155df97cff0cbd3872b98e633d76
parenta1882d43c350f8d526fbea2c942fb71913c73399
Stop resetting SanitizeAddress in TargetMachine::resetTargetOptions. NFC.

Instead of doing that, create a temporary copy of MCTargetOptions and reset its
SanitizeAddress field based on the function's attribute every time an InlineAsm
instruction is emitted in AsmPrinter::EmitInlineAsm.

This is part of the work to remove TargetMachine::resetTargetOptions (the FIXME
added to TargetMachine.cpp in r236009 explains why this function has to be
removed).

Differential Revision: http://reviews.llvm.org/D9570

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237412 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
lib/Target/TargetMachine.cpp