summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-01-30 01:39:17 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-01-30 01:39:17 +0000
commitab42578bdd00f1738a1a9ff41481faf9673110ce (patch)
treead7bd65709d3c88031f26a59fccea72f86ada7d0 /include
parent8ddf091e99eda230e43fd51fd2e7c30a501e39af (diff)
downloadllvm-ab42578bdd00f1738a1a9ff41481faf9673110ce.tar.gz
llvm-ab42578bdd00f1738a1a9ff41481faf9673110ce.tar.bz2
llvm-ab42578bdd00f1738a1a9ff41481faf9673110ce.tar.xz
Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple'
This incorporates a couple of fixes reviewed at http://llvm-reviews.chandlerc.com/D2651 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/DebugLoc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h
index f3887293ef..f6cd19a61e 100644
--- a/include/llvm/Support/DebugLoc.h
+++ b/include/llvm/Support/DebugLoc.h
@@ -89,6 +89,12 @@ namespace llvm {
void getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
const LLVMContext &Ctx) const;
+ /// getScopeNode - Get MDNode for DebugLoc's scope, or null if invalid.
+ MDNode *getScopeNode(const LLVMContext &Ctx) const;
+
+ // getFnDebugLoc - Walk up the scope chain of given debug loc and find line
+ // number info for the function.
+ DebugLoc getFnDebugLoc(const LLVMContext &Ctx);
/// getAsMDNode - This method converts the compressed DebugLoc node into a
/// DILocation compatible MDNode.