diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2008-10-21 23:33:38 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-21 23:33:38 +0000 |
| commit | 54d5b9ea2c2c375f680f3b08a642145edf2b6bf1 (patch) | |
| tree | 39d0071c7489b70a9462f5fee64d0be6406fd1d2 /llvm/tools/opt/opt.cpp | |
| parent | 3d7ece1acb273fe7da5db2048382cde16dd71ac5 (diff) | |
| download | bcm5719-llvm-54d5b9ea2c2c375f680f3b08a642145edf2b6bf1.tar.gz bcm5719-llvm-54d5b9ea2c2c375f680f3b08a642145edf2b6bf1.zip | |
Privatize PrintModulePass and PrintFunctionPass and add
createPrintModulePass and createPrintFunctionPass.
- So clients who compile w/o RTTI can use them.
llvm-svn: 57933
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
| -rw-r--r-- | llvm/tools/opt/opt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index ea6ed3370c0..358cbdabfbd 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -543,7 +543,7 @@ int main(int argc, char **argv) { } if (PrintEachXForm) - Passes.add(new PrintModulePass(&cerr)); + Passes.add(createPrintModulePass(&cerr)); } // If -std-compile-opts was specified at the end of the pass list, add them. |

