mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 22:17:47 +00:00
47d3d1e5ef
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. llvm-svn: 256203
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
|