diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-01-28 21:33:27 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-01-28 21:33:27 +0000 |
commit | 38afdbea2c6962a3a808400a4d50345d18ccecfd (patch) | |
tree | b03d8ad3387f61b5b2ebe49e5c46a67dd17bc71e /include | |
parent | 6cccb32fb09035854a77b01224d512eefe7de45d (diff) | |
download | llvm-38afdbea2c6962a3a808400a4d50345d18ccecfd.tar.gz llvm-38afdbea2c6962a3a808400a4d50345d18ccecfd.tar.bz2 llvm-38afdbea2c6962a3a808400a4d50345d18ccecfd.tar.xz |
Add line table debug info to COFF files when using a win32 triple.
Reviewed at http://llvm-reviews.chandlerc.com/D2232
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/DebugLoc.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h index 05f31d7a49..f6cd19a61e 100644 --- a/include/llvm/Support/DebugLoc.h +++ b/include/llvm/Support/DebugLoc.h @@ -15,7 +15,7 @@ #ifndef LLVM_SUPPORT_DEBUGLOC_H #define LLVM_SUPPORT_DEBUGLOC_H -#include "llvm/Support/DataTypes.h"
+#include "llvm/Support/DataTypes.h" namespace llvm { template <typename T> struct DenseMapInfo; @@ -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. |