path: root/tools/llvm-extract
diff options
authorRafael Espindola <>2014-02-25 17:30:31 +0000
committerRafael Espindola <>2014-02-25 17:30:31 +0000
commit57edc9d4ff1648568a5dd7e9958649065b260dca (patch)
tree2fd21b70b09e0e15c8e6f6acb8ba1089514f1cfb /tools/llvm-extract
parent28713bdebc685a7a963fefe5a1f9d7be047a65e7 (diff)
Make DataLayout a plain object, not a pass.
Instead, have a DataLayoutPass that holds one. This will allow parts of LLVM don't don't handle passes to also use DataLayout. git-svn-id: 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-extract')
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp
index 45c920ff3c1..b1c1f68f55f 100644
--- a/tools/llvm-extract/llvm-extract.cpp
+++ b/tools/llvm-extract/llvm-extract.cpp
@@ -254,7 +254,7 @@ int main(int argc, char **argv) {
// In addition to deleting all other functions, we also want to spiff it
// up a little bit. Do this now.
PassManager Passes;
- Passes.add(new DataLayout(M.get())); // Use correct DataLayout
+ Passes.add(new DataLayoutPass(M.get())); // Use correct DataLayout
std::vector<GlobalValue*> Gvs(GVs.begin(), GVs.end());