r234970 - uselistorder: -mllvm -preserve-ll-use-list-order => -emit-llvm-uselists

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Apr 14 19:45:28 PDT 2015


Author: dexonsmith
Date: Tue Apr 14 21:45:28 2015
New Revision: 234970

URL: http://llvm.org/viewvc/llvm-project?rev=234970&view=rev
Log:
uselistorder: -mllvm -preserve-ll-use-list-order => -emit-llvm-uselists

Follow up to r234962, start respecting `-emit-llvm-uselists even for
LLVM assembly.  Note that the driver never passes this flag; this is
just a interface convenience/consistency for those using `-cc1`
directly.  This required LLVM r234969 (and predecessors).

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=234970&r1=234969&r2=234970&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Tue Apr 14 21:45:28 2015
@@ -607,7 +607,8 @@ void EmitAssemblyHelper::EmitAssembly(Ba
     break;
 
   case Backend_EmitLL:
-    getPerModulePasses()->add(createPrintModulePass(*OS));
+    getPerModulePasses()->add(
+        createPrintModulePass(*OS, "", CodeGenOpts.EmitLLVMUseLists));
     break;
 
   default:





More information about the cfe-commits mailing list