summaryrefslogtreecommitdiff
path: root/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
commitf4db3a51c7d806f7dcef5d9625e7cdf7f122dca9 (patch)
tree81dbaa0fce182c01c6fa0c916f24dc0773c3e34b /tools/llvm-dis/llvm-dis.cpp
parent040225fcb7e16ad7485dec9ccd23f178297a8a61 (diff)
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/llvm-dis/llvm-dis.cpp')
-rw-r--r--tools/llvm-dis/llvm-dis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index 9802541e0f6..276b1e49534 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/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());
}