mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 22:43:53 +00:00
LTO also needs to initialize the TargetTransform infrastructure.
llvm-svn: 165997
This commit is contained in:
parent
c808be0c56
commit
b6fb0afb47
@ -371,6 +371,8 @@ bool LTOCodeGenerator::generateObjectFile(raw_ostream &out,
|
||||
|
||||
// Add an appropriate DataLayout instance for this module...
|
||||
passes.add(new DataLayout(*_target->getDataLayout()));
|
||||
passes.add(new TargetTransformInfo(_target->getScalarTargetTransformInfo(),
|
||||
_target->getVectorTargetTransformInfo()));
|
||||
|
||||
// Enabling internalize here would use its AllButMain variant. It
|
||||
// keeps only main if it exists and does nothing for libraries. Instead
|
||||
|
Loading…
x
Reference in New Issue
Block a user