[PGO] Cleanup: remove reduncant calls in lowering

CoverageMapping data's section and alignment is
already set during creation. No need to call it again
during lowering.

llvm-svn: 256716
This commit is contained in:
Xinliang David Li 2016-01-03 19:38:51 +00:00
parent 0b50f47732
commit 1ab26df8a2

View File

@ -234,8 +234,6 @@ void InstrProfiling::lowerIncrement(InstrProfIncrementInst *Inc) {
}
void InstrProfiling::lowerCoverageData(GlobalVariable *CoverageData) {
CoverageData->setSection(getCoverageSection());
CoverageData->setAlignment(8);
Constant *Init = CoverageData->getInitializer();
// We're expecting { [4 x 32], [n x { i8*, i32, i32 }], [m x i8] }