r234960 - uselistorder: Update for LLVM API change in r234959
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Apr 14 17:36:14 PDT 2015
Author: dexonsmith
Date: Tue Apr 14 19:36:14 2015
New Revision: 234960
URL: http://llvm.org/viewvc/llvm-project?rev=234960&view=rev
Log:
uselistorder: Update for LLVM API change in r234959
Now that `addBitcodeWriterPass()` requires an explicit bit to preserve
use-list order, send it in from `clang`. It looks like I'll be able to
push this up to the `-cc1` options.
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=234960&r1=234959&r2=234960&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Tue Apr 14 19:36:14 2015
@@ -24,6 +24,7 @@
#include "llvm/IR/IRPrintingPasses.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/Module.h"
+#include "llvm/IR/UseListOrder.h"
#include "llvm/IR/Verifier.h"
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Support/CommandLine.h"
@@ -601,7 +602,8 @@ void EmitAssemblyHelper::EmitAssembly(Ba
break;
case Backend_EmitBC:
- getPerModulePasses()->add(createBitcodeWriterPass(*OS));
+ getPerModulePasses()->add(
+ createBitcodeWriterPass(*OS, shouldPreserveBitcodeUseListOrder()));
break;
case Backend_EmitLL:
More information about the cfe-commits
mailing list