diff options
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm/MC/MCAssembler.h')
-rw-r--r-- | contrib/llvm-project/llvm/include/llvm/MC/MCAssembler.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm/MC/MCAssembler.h b/contrib/llvm-project/llvm/include/llvm/MC/MCAssembler.h index 1f670e3973ce..9d5cb620c9de 100644 --- a/contrib/llvm-project/llvm/include/llvm/MC/MCAssembler.h +++ b/contrib/llvm-project/llvm/include/llvm/MC/MCAssembler.h @@ -153,6 +153,7 @@ private: MCLOHContainer LOHContainer; VersionInfoType VersionInfo; + VersionInfoType DarwinTargetVariantVersionInfo; /// Evaluate a fixup to a relocatable expression and the value which should be /// placed into the fixup. @@ -285,6 +286,21 @@ public: VersionInfo.SDKVersion = SDKVersion; } + const VersionInfoType &getDarwinTargetVariantVersionInfo() const { + return DarwinTargetVariantVersionInfo; + } + void setDarwinTargetVariantBuildVersion(MachO::PlatformType Platform, + unsigned Major, unsigned Minor, + unsigned Update, + VersionTuple SDKVersion) { + DarwinTargetVariantVersionInfo.EmitBuildVersion = true; + DarwinTargetVariantVersionInfo.TypeOrPlatform.Platform = Platform; + DarwinTargetVariantVersionInfo.Major = Major; + DarwinTargetVariantVersionInfo.Minor = Minor; + DarwinTargetVariantVersionInfo.Update = Update; + DarwinTargetVariantVersionInfo.SDKVersion = SDKVersion; + } + /// Reuse an assembler instance /// void reset(); |