From: Xinliang David Li Date: Sun, 3 Jan 2016 19:38:51 +0000 (+0000) Subject: [PGO] Cleanup: remove reduncant calls in lowering X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7438e2da6cce487b6fc95873d3d554c5ad81de4f;p=oota-llvm.git [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256716 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/InstrProfiling.cpp b/lib/Transforms/Instrumentation/InstrProfiling.cpp index 7a51fda38ed..51ff95d9a74 100644 --- a/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -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] }