aboutsummaryrefslogtreecommitdiffstats
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-21 23:33:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-21 23:33:38 +0000
commit1363a6d0e5daa5ab8ff2670825f9e8a34123defa (patch)
tree81dbaa0fce182c01c6fa0c916f24dc0773c3e34b /tools/opt/opt.cpp
parentfb019af0253650ec53cdf9c765f2ae188b58a232 (diff)
downloadexternal_llvm-1363a6d0e5daa5ab8ff2670825f9e8a34123defa.tar.gz
external_llvm-1363a6d0e5daa5ab8ff2670825f9e8a34123defa.tar.bz2
external_llvm-1363a6d0e5daa5ab8ff2670825f9e8a34123defa.zip
Privatize PrintModulePass and PrintFunctionPass and add
createPrintModulePass and createPrintFunctionPass. - So clients who compile w/o RTTI can use them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index ea6ed3370c..358cbdabfb 100644
--- a/tools/opt/opt.cpp
+++ b/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.