Transforms: Use the new DebugLoc API, NFC

Update lib/Analysis and lib/Transforms to use the new `DebugLoc` API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233587 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2015-03-30 19:49:49 +00:00
parent 39acf8f243
commit f175439a2b
8 changed files with 35 additions and 36 deletions

View File

@@ -366,8 +366,8 @@ void SanitizerCoverageModule::InjectCoverageAtBlock(Function &F, BasicBlock &BB,
}
bool IsEntryBB = &BB == &F.getEntryBlock();
DebugLoc EntryLoc = IsEntryBB && !IP->getDebugLoc().isUnknown()
? IP->getDebugLoc().getFnDebugLoc(*C)
DebugLoc EntryLoc = IsEntryBB && IP->getDebugLoc()
? IP->getDebugLoc().getFnDebugLoc()
: IP->getDebugLoc();
IRBuilder<> IRB(IP);
IRB.SetCurrentDebugLocation(EntryLoc);