summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dis/llvm-dis.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
commit54d5b9ea2c2c375f680f3b08a642145edf2b6bf1 (patch)
tree39d0071c7489b70a9462f5fee64d0be6406fd1d2 /llvm/tools/llvm-dis/llvm-dis.cpp
parent3d7ece1acb273fe7da5db2048382cde16dd71ac5 (diff)
downloadbcm5719-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/llvm-dis/llvm-dis.cpp')
-rw-r--r--llvm/tools/llvm-dis/llvm-dis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp
index 9802541e0f6..276b1e49534 100644
--- a/llvm/tools/llvm-dis/llvm-dis.cpp
+++ b/llvm/tools/llvm-dis/llvm-dis.cpp
@@ -118,7 +118,7 @@ int main(int argc, char **argv) {
if (!DontPrint) {
PassManager Passes;
OStream L(*Out);
- Passes.add(new PrintModulePass(&L));
+ Passes.add(createPrintModulePass(&L));
Passes.run(*M.get());
}
OpenPOWER on IntegriCloud