mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
a671a09dae
Pull the `-preserve-*-use-list-order` flags out of "experimental" mode, and preserve use-list order by default when serializing to bitcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234510 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
//===- UseListOrder.cpp - Implement Use List Order ------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Implement structures and command-line options for preserving use-list order.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/IR/UseListOrder.h"
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
using namespace llvm;
|
|
|
|
static cl::opt<bool> PreserveBitcodeUseListOrder(
|
|
"preserve-bc-use-list-order",
|
|
cl::desc("Preserve use-list order when writing LLVM bitcode."),
|
|
cl::init(true), cl::Hidden);
|
|
|
|
static cl::opt<bool> PreserveAssemblyUseListOrder(
|
|
"preserve-ll-use-list-order",
|
|
cl::desc("Preserve use-list order when writing LLVM assembly."),
|
|
cl::init(false), cl::Hidden);
|
|
|
|
bool llvm::shouldPreserveBitcodeUseListOrder() {
|
|
return PreserveBitcodeUseListOrder;
|
|
}
|
|
|
|
bool llvm::shouldPreserveAssemblyUseListOrder() {
|
|
return PreserveAssemblyUseListOrder;
|
|
}
|
|
|
|
void llvm::setPreserveBitcodeUseListOrder(bool ShouldPreserve) {
|
|
PreserveBitcodeUseListOrder = ShouldPreserve;
|
|
}
|
|
|
|
void llvm::setPreserveAssemblyUseListOrder(bool ShouldPreserve) {
|
|
PreserveAssemblyUseListOrder = ShouldPreserve;
|
|
}
|