summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-10 21:57:06 +0000
committerRui Ueyama <ruiu@google.com>2015-04-10 21:57:06 +0000
commit4d57247236c50d6c4a8cd1b5849a5a650abc76a8 (patch)
tree49825e5db7918b4f74af58d5cc88f965d6ad0d04 /lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
parent4a576bfd23f47e86c0b6be08280dc5c8bbc6cbe7 (diff)
downloadbcm5719-llvm-4d57247236c50d6c4a8cd1b5849a5a650abc76a8.tar.gz
bcm5719-llvm-4d57247236c50d6c4a8cd1b5849a5a650abc76a8.zip
PECOFF: Use C++11 braced init list to make Version objects.
llvm-svn: 234649
Diffstat (limited to 'lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp')
-rw-r--r--lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
index 8c3aac04f8f..72e3eaea3a8 100644
--- a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
@@ -435,18 +435,16 @@ PEHeaderChunk<PEHeader>::PEHeaderChunk(const PECOFFLinkingContext &ctx)
// The version number of the resultant executable/DLL. The number is purely
// informative, and neither the linker nor the loader won't use it. User can
// set the value using /version command line option. Default is 0.0.
- PECOFFLinkingContext::Version imageVersion = ctx.getImageVersion();
- _peHeader.MajorImageVersion = imageVersion.majorVersion;
- _peHeader.MinorImageVersion = imageVersion.minorVersion;
+ _peHeader.MajorImageVersion = ctx.getImageVersion().major;
+ _peHeader.MinorImageVersion = ctx.getImageVersion().minor;
// The required Windows version number. This is the internal version and
// shouldn't be confused with product name. Windows 7 is version 6.1 and
// Windows 8 is 6.2, for example.
- PECOFFLinkingContext::Version minOSVersion = ctx.getMinOSVersion();
- _peHeader.MajorOperatingSystemVersion = minOSVersion.majorVersion;
- _peHeader.MinorOperatingSystemVersion = minOSVersion.minorVersion;
- _peHeader.MajorSubsystemVersion = minOSVersion.majorVersion;
- _peHeader.MinorSubsystemVersion = minOSVersion.minorVersion;
+ _peHeader.MajorOperatingSystemVersion = ctx.getMinOSVersion().major;
+ _peHeader.MinorOperatingSystemVersion = ctx.getMinOSVersion().minor;
+ _peHeader.MajorSubsystemVersion = ctx.getMinOSVersion().major;
+ _peHeader.MinorSubsystemVersion = ctx.getMinOSVersion().minor;
_peHeader.Subsystem = ctx.getSubsystem();
OpenPOWER on IntegriCloud