path: root/tools/llvm-extract
diff options
authorChandler Carruth <>2014-01-12 11:30:46 +0000
committerChandler Carruth <>2014-01-12 11:30:46 +0000
commita5ced5ed37b3a742e958506ce133387b3313fe3a (patch)
tree49fd532c2cfab7f8e7b65606d01b2e3755174340 /tools/llvm-extract
parent2ad3b87c4e1dfb8a49537ef51be5a13ea244f867 (diff)
[PM] Simplify the interface exposed for IR printing passes.
Nothing was using the ability of the pass to delete the raw_ostream it printed to, and nothing was trying to pass it a pointer to the raw_ostream. Also, the function variant had a different order of arguments from all of the others which was just really confusing. Now the interface accepts a reference, doesn't offer to delete it, and uses a consistent order. The implementation of the printing passes haven't been updated with this simplification, this is just the API switch. 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 ecea00530d9..4962151e566 100644
--- a/tools/llvm-extract/llvm-extract.cpp
+++ b/tools/llvm-extract/llvm-extract.cpp
@@ -272,7 +272,7 @@ int main(int argc, char **argv) {
if (OutputAssembly)
- Passes.add(createPrintModulePass(&Out.os()));
+ Passes.add(createPrintModulePass(Out.os()));
else if (Force || !CheckBitcodeOutputToConsole(Out.os(), true))