aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eli.bendersky@intel.com>2012-06-25 10:13:14 +0000
committerEli Bendersky <eli.bendersky@intel.com>2012-06-25 10:13:14 +0000
commitf0ad3606c7c6e8867c2e4ac88605500cb895d55f (patch)
treec2abe8553027624e51ac7c1f98f4ed111b4e09a7 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent0e0832bfdb36c421f5c1d382a15bacdeead07e2c (diff)
downloadllvm-f0ad3606c7c6e8867c2e4ac88605500cb895d55f.zip
llvm-f0ad3606c7c6e8867c2e4ac88605500cb895d55f.tar.gz
llvm-f0ad3606c7c6e8867c2e4ac88605500cb895d55f.tar.bz2
The name (and comment describing) of llvm::GetFirstDebuigLocInBasicBlock no longer represents what the function does. Therefore, the function is removed and its functionality is folded into the only place in the code-base where it was being used.
llvm-svn: 159133
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/BasicBlockUtils.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
index 3859a1a..5576432 100644
--- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
@@ -671,12 +671,3 @@ ReturnInst *llvm::FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
return cast<ReturnInst>(NewRet);
}
-/// GetFirstDebugLocInBasicBlock - Return first valid DebugLoc entry in a
-/// given basic block.
-DebugLoc llvm::GetFirstDebugLocInBasicBlock(const BasicBlock *BB) {
- if (const Instruction *I = BB->getFirstNonPHI())
- return I->getDebugLoc();
- // Scanning entire block may be too expensive, if the first instruction
- // does not have valid location info.
- return DebugLoc();
-}