[PCH/Modules] Don't tie TargetOptions::LinkerVersion to a module/PCH, it's a driver only thing and doesn't affect any language/preprocessor/etc. semantics.

rdar://16714526

llvm-svn: 207570
This commit is contained in:
Argyrios Kyrtzidis
2014-04-29 18:45:01 +00:00
parent deab6f945c
commit fe6b880de5
6 changed files with 18 additions and 6 deletions

View File

@@ -1819,7 +1819,7 @@ std::string CompilerInvocation::getModuleHash() const {
// Extend the signature with the target options.
code = hash_combine(code, TargetOpts->Triple, TargetOpts->CPU,
TargetOpts->ABI, TargetOpts->LinkerVersion);
TargetOpts->ABI);
for (unsigned i = 0, n = TargetOpts->FeaturesAsWritten.size(); i != n; ++i)
code = hash_combine(code, TargetOpts->FeaturesAsWritten[i]);