about summary refs log tree commit diff homepage
path: root/lib/Module/Optimize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Module/Optimize.cpp')
-rw-r--r--lib/Module/Optimize.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Module/Optimize.cpp b/lib/Module/Optimize.cpp
index d988a74c..fc37c1a9 100644
--- a/lib/Module/Optimize.cpp
+++ b/lib/Module/Optimize.cpp
@@ -27,7 +27,7 @@
 #else
 #include "llvm/Support/DynamicLibrary.h"
 #endif
-#include "llvm/Target/TargetData.h"
+#include "llvm/Target/DataLayout.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Transforms/IPO.h"
 #include "llvm/Transforms/Scalar.h"
@@ -178,8 +178,8 @@ void Optimize(Module* M) {
   if (VerifyEach)
     Passes.add(createVerifierPass());
 
-  // Add an appropriate TargetData instance for this module...
-  addPass(Passes, new TargetData(M));
+  // Add an appropriate DataLayout instance for this module...
+  addPass(Passes, new DataLayout(M));
 
   // DWD - Run the opt standard pass list as well.
   AddStandardCompilePasses(Passes);