summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CoverageMappingGen.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-07-02 00:42:32 +0000
committerJustin Bogner <mail@justinbogner.com>2015-07-02 00:42:32 +0000
commitb05a43f59b41bf385e94f3729585762ac7bbb88e (patch)
tree8d187122c21e9bd070521ad9d3ea871c10c0f659 /clang/lib/CodeGen/CoverageMappingGen.cpp
parent191116f3eb4fba2d6a2fa505025d65f46db1a40a (diff)
downloadbcm5719-llvm-b05a43f59b41bf385e94f3729585762ac7bbb88e.tar.gz
bcm5719-llvm-b05a43f59b41bf385e94f3729585762ac7bbb88e.zip
InstrProf: Pack the coverage mapping structs that we write out
When we read this data we treat it as unaligned and packed, so we should really be explicit about that when we write it. llvm-svn: 241218
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r--clang/lib/CodeGen/CoverageMappingGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp
index d8a946030db..e4fe203ffd1 100644
--- a/clang/lib/CodeGen/CoverageMappingGen.cpp
+++ b/clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -932,7 +932,7 @@ void CoverageMappingModuleGen::addFunctionMappingRecord(
if (!FunctionRecordTy) {
llvm::Type *FunctionRecordTypes[] = {Int8PtrTy, Int32Ty, Int32Ty, Int64Ty};
FunctionRecordTy =
- llvm::StructType::get(Ctx, makeArrayRef(FunctionRecordTypes));
+ llvm::StructType::get(Ctx, makeArrayRef(FunctionRecordTypes), true);
}
llvm::Constant *FunctionRecordVals[] = {
OpenPOWER on IntegriCloud