diff options
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
-rw-r--r-- | llvm/tools/opt/opt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index d03a65040bb..0127c53480f 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -113,6 +113,9 @@ int main(int argc, char **argv) { // PassManager Passes; + // Add an appropriate TargetData instance for this module... + Passes.add(new TargetData("opt", M.get())); + // Create a new optimization pass for each one specified on the command line for (unsigned i = 0; i < OptimizationList.size(); ++i) { const PassInfo *Opt = OptimizationList[i]; |