From: Duncan P. N. Exon Smith Date: Wed, 15 Apr 2015 02:45:28 +0000 (+0000) Subject: uselistorder: -mllvm -preserve-ll-use-list-order => -emit-llvm-uselists X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c10c7bfd12d6a2f8e4828312ab0f45b319c01da;p=clang 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234970 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index a6d09f7b8c..0d95fc102d 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -607,7 +607,8 @@ void EmitAssemblyHelper::EmitAssembly(BackendAction Action, break; case Backend_EmitLL: - getPerModulePasses()->add(createPrintModulePass(*OS)); + getPerModulePasses()->add( + createPrintModulePass(*OS, "", CodeGenOpts.EmitLLVMUseLists)); break; default: