Modify the code that emits the module flags to use the new module flags accessor
authorBill Wendling <isanbard@gmail.com>
Wed, 15 Feb 2012 22:36:15 +0000 (22:36 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 15 Feb 2012 22:36:15 +0000 (22:36 +0000)
commit057d521e3d91a894f6c38fcbc21ee5950fbdf7b1
tree1e35fc4f93a73a0bc8ed0d7ec9fbcef61323bb90
parentf20f281368f75239c852fe99c3b3a19278ba38fd
Modify the code that emits the module flags to use the new module flags accessor
method. This allows the target lowering code to not have to deal with MDNodes.

Also, avoid leaking memory like a sieve by not creating a global variable for
the image info section, but just emitting the code directly.

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