r199045 - [PM] Update the creation of an IR printing pass to reflect the API

Chandler Carruth chandlerc at gmail.com
Sun Jan 12 03:31:23 PST 2014


Author: chandlerc
Date: Sun Jan 12 05:31:22 2014
New Revision: 199045

URL: http://llvm.org/viewvc/llvm-project?rev=199045&view=rev
Log:
[PM] Update the creation of an IR printing pass to reflect the API
update in LLVM r199044.

Modified:
    cfe/trunk/lib/CodeGen/BackendUtil.cpp

Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=199045&r1=199044&r2=199045&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Sun Jan 12 05:31:22 2014
@@ -570,7 +570,7 @@ void EmitAssemblyHelper::EmitAssembly(Ba
 
   case Backend_EmitLL:
     FormattedOS.setStream(*OS, formatted_raw_ostream::PRESERVE_STREAM);
-    getPerModulePasses()->add(createPrintModulePass(&FormattedOS));
+    getPerModulePasses()->add(createPrintModulePass(FormattedOS));
     break;
 
   default:





More information about the cfe-commits mailing list