llvm.org GIT mirror llvm / d696544
Run the ObjCARCContract pass for LTO. <rdar://problem/13538084> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178385 91177308-0d34-0410-b5e6-96231b3b80d8 Bob Wilson 6 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4343 #include "llvm/Target/TargetRegisterInfo.h"
4444 #include "llvm/Transforms/IPO.h"
4545 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
46 #include "llvm/Transforms/ObjCARC.h"
4647 using namespace llvm;
4748
4849 static cl::opt
396397
397398 formatted_raw_ostream Out(out);
398399
400 // If the bitcode files contain ARC code and were compiled with optimization,
401 // the ObjCARCContractPass must be run, so do it unconditionally here.
402 codeGenPasses.add(createObjCARCContractPass());
403
399404 if (_target->addPassesToEmitFile(codeGenPasses, Out,
400405 TargetMachine::CGFT_ObjectFile)) {
401406 errMsg = "target file type not supported";