mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
uselistorder: Remove the global bits
Remove all the global bits to do with preserving use-list order by moving the `cl::opt`s to the individual tools that want them. There's a minor functionality change to `libLTO`, in that you can't send in `-preserve-bc-uselistorder=false`, but making that bit settable (if it's worth doing) should be through explicit LTO API. As a drive-by fix, I removed some includes of `UseListOrder.h` that were made unnecessary by recent commits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -29,7 +29,6 @@
|
||||
#include "llvm/IR/LegacyPassManager.h"
|
||||
#include "llvm/IR/Mangler.h"
|
||||
#include "llvm/IR/Module.h"
|
||||
#include "llvm/IR/UseListOrder.h"
|
||||
#include "llvm/IR/Verifier.h"
|
||||
#include "llvm/InitializePasses.h"
|
||||
#include "llvm/LTO/LTOModule.h"
|
||||
@ -216,7 +215,7 @@ bool LTOCodeGenerator::writeMergedModules(const char *path,
|
||||
|
||||
// write bitcode to it
|
||||
WriteBitcodeToFile(IRLinker.getModule(), Out.os(),
|
||||
shouldPreserveBitcodeUseListOrder());
|
||||
/* ShouldPreserveUseListOrder */ true);
|
||||
Out.os().close();
|
||||
|
||||
if (Out.os().has_error()) {
|
||||
@ -606,10 +605,6 @@ void LTOCodeGenerator::setCodeGenDebugOptions(const char *options) {
|
||||
}
|
||||
|
||||
void LTOCodeGenerator::parseCodeGenDebugOptions() {
|
||||
// Turn on -preserve-bc-uselistorder by default, but let the command-line
|
||||
// override it.
|
||||
setPreserveBitcodeUseListOrder(true);
|
||||
|
||||
// if options were requested, set them
|
||||
if (!CodegenOptions.empty())
|
||||
cl::ParseCommandLineOptions(CodegenOptions.size(),
|
||||
|
Reference in New Issue
Block a user