summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-12-02 02:13:09 +0000
committerHans Wennborg <hans@hanshq.net>2014-12-02 02:13:09 +0000
commit0101b540dbc4cf929c4f8cf935e36b9fbe217a0b (patch)
treef5bf5b72dcc0a56597afb3f45d8554e47fa2f538 /clang/lib
parent07ba5121a12f31bfeb38630e16b18310a302f6ba (diff)
downloadbcm5719-llvm-0101b540dbc4cf929c4f8cf935e36b9fbe217a0b.tar.gz
bcm5719-llvm-0101b540dbc4cf929c4f8cf935e36b9fbe217a0b.zip
Try to fix the MSVC build.
llvm-svn: 223105
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Lex/ModuleMap.cpp16
-rw-r--r--clang/lib/Serialization/ASTReader.cpp5
2 files changed, 10 insertions, 11 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp
index a270b56e6af..9ac554ae96c 100644
--- a/clang/lib/Lex/ModuleMap.cpp
+++ b/clang/lib/Lex/ModuleMap.cpp
@@ -1786,23 +1786,23 @@ void ModuleMapParser::parseHeaderDecl(MMToken::TokenKind LeadingToken,
Map.setUmbrellaHeader(ActiveModule, File);
}
} else if (LeadingToken == MMToken::ExcludeKeyword) {
- Map.excludeHeader(ActiveModule,
- Module::Header{RelativePathName.str(), File});
+ Module::Header H = {RelativePathName.str(), File};
+ Map.excludeHeader(ActiveModule, H);
} else {
// If there is a builtin counterpart to this file, add it now, before
// the "real" header, so we build the built-in one first when building
// the module.
- if (BuiltinFile)
+ if (BuiltinFile) {
// FIXME: Taking the name from the FileEntry is unstable and can give
// different results depending on how we've previously named that file
// in this build.
- Map.addHeader(ActiveModule,
- Module::Header{BuiltinFile->getName(), BuiltinFile},
- Role);
+ Module::Header H = { BuiltinFile->getName(), BuiltinFile };
+ Map.addHeader(ActiveModule, H, Role);
+ }
// Record this header.
- Map.addHeader(ActiveModule, Module::Header{RelativePathName.str(), File},
- Role);
+ Module::Header H = { RelativePathName.str(), File };
+ Map.addHeader(ActiveModule, H, Role);
}
} else if (LeadingToken != MMToken::ExcludeKeyword) {
// Ignore excluded header files. They're optional anyway.
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index e1daa04647f..b253704a361 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -1563,9 +1563,8 @@ HeaderFileInfoTrait::ReadData(internal_key_ref key, const unsigned char *d,
// information should be propagated through the SUBMODULE_HEADER etc
// records rather than from here.
// FIXME: We don't ever mark excluded headers.
- ModMap.addHeader(
- Mod, Module::Header{key.Filename, FileMgr.getFile(key.Filename)},
- HFI.getHeaderRole());
+ Module::Header H = { key.Filename, FileMgr.getFile(key.Filename) };
+ ModMap.addHeader(Mod, H, HFI.getHeaderRole());
}
}
OpenPOWER on IntegriCloud