forked from OSchip/llvm-project
[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:
parent
a9711a9aa4
commit
be742b745b
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue