mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 08:29:43 +00:00
56afa6e660
Today, we always take into account the possibility that object files produced by MC may be consumed by an incremental linker. This results in us initialing fields which vary with time (TimeDateStamp) which harms hermetic builds (e.g. verifying a self-host went well) and produces sub-optimal code because we cannot assume anything about the relative position of functions within a section (call sites can get redirected through incremental linker thunks). Let's provide an MCTargetOption which controls this behavior so that we can disable this functionality if we know a-priori that the build will not rely on /incremental. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256203 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
876 B
C++
27 lines
876 B
C++
//===- lib/MC/MCTargetOptions.cpp - MC Target Options --------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/ADT/StringRef.h"
|
|
#include "llvm/MC/MCTargetOptions.h"
|
|
|
|
namespace llvm {
|
|
|
|
MCTargetOptions::MCTargetOptions()
|
|
: SanitizeAddress(false), MCRelaxAll(false), MCNoExecStack(false),
|
|
MCFatalWarnings(false), MCNoWarn(false), MCSaveTempLabels(false),
|
|
MCUseDwarfDirectory(false), MCIncrementalLinkerCompatible(false),
|
|
ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false),
|
|
DwarfVersion(0), ABIName() {}
|
|
|
|
StringRef MCTargetOptions::getABIName() const {
|
|
return ABIName;
|
|
}
|
|
|
|
} // end namespace llvm
|