[PM] Track an LLVM API change by switching this code to directly create

the wrapper pass for TLI which is now separate from the core class.

llvm-svn: 226159
This commit is contained in:
Chandler Carruth 2015-01-15 10:43:18 +00:00
parent a9711a9aa4
commit be742b745b
1 changed files with 1 additions and 3 deletions

View File

@ -561,9 +561,7 @@ static bool createASMAsString(Module *New, const StringRef &Triple,
// Build up all of the passes that we want to do to the module.
PassManager PM;
TargetLibraryInfo *TLI = new TargetLibraryInfo(TheTriple);
PM.add(TLI);
PM.add(new TargetLibraryInfoWrapperPass(TheTriple));
PM.add(new DataLayoutPass(*Target.getDataLayout()));
Target.addAnalysisPasses(PM);