summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugLoc.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-01-29 06:05:38 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-01-29 06:05:38 +0000
commitb366f01f836d1dc61a449c6d4656e6b3117142fb (patch)
tree2a197a36a4fa7e875bb2551ee0c8fb360ea8a391 /llvm/lib/IR/DebugLoc.cpp
parent619581c3c95baac7b493b06e8149d1085d48a23f (diff)
downloadbcm5719-llvm-b366f01f836d1dc61a449c6d4656e6b3117142fb.tar.gz
bcm5719-llvm-b366f01f836d1dc61a449c6d4656e6b3117142fb.zip
Revert r200340, "Add line table debug info to COFF files when using a win32 triple."
It was incompatible with --target=i686-win32. llvm-svn: 200375
Diffstat (limited to 'llvm/lib/IR/DebugLoc.cpp')
-rw-r--r--llvm/lib/IR/DebugLoc.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/IR/DebugLoc.cpp b/llvm/lib/IR/DebugLoc.cpp
index fcb6f4194ea..c57b5a30530 100644
--- a/llvm/lib/IR/DebugLoc.cpp
+++ b/llvm/lib/IR/DebugLoc.cpp
@@ -70,26 +70,6 @@ void DebugLoc::getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
IA = Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].second.get();
}
-MDNode *DebugLoc::getScopeNode(const LLVMContext &Ctx) const {
- if (MDNode *InlinedAt = getInlinedAt(Ctx))
- return DebugLoc::getFromDILocation(InlinedAt).getScopeNode(Ctx);
- return getScope(Ctx);
-}
-
-DebugLoc DebugLoc::getFnDebugLoc(const LLVMContext &Ctx) {
- const MDNode *Scope = getScopeNode(Ctx);
- DISubprogram SP = getDISubprogram(Scope);
- if (SP.isSubprogram()) {
- // Check for number of operands since the compatibility is
- // cheap here. FIXME: Name the magic constant.
- if (SP->getNumOperands() > 19)
- return DebugLoc::get(SP.getScopeLineNumber(), 0, SP);
- else
- return DebugLoc::get(SP.getLineNumber(), 0, SP);
- }
-
- return DebugLoc();
-}
DebugLoc DebugLoc::get(unsigned Line, unsigned Col,
MDNode *Scope, MDNode *InlinedAt) {
OpenPOWER on IntegriCloud