aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-02-22 23:50:04 +0000
committerEric Christopher <echristo@gmail.com>2013-02-22 23:50:04 +0000
commite4b67906d3cc5ea365359f9b034189aaa51ca1e9 (patch)
tree56edd78a14ccbe8552e53ed85f3cfe5514e890a8 /include
parent1683b304e0487700c2f4447e7c72c62fb9f3a24c (diff)
downloadexternal_llvm-e4b67906d3cc5ea365359f9b034189aaa51ca1e9.zip
external_llvm-e4b67906d3cc5ea365359f9b034189aaa51ca1e9.tar.gz
external_llvm-e4b67906d3cc5ea365359f9b034189aaa51ca1e9.tar.bz2
Add a field to the compile unit of where we plan on splitting out
the debug info for -gsplit-dwarf so we can encode that location in the skeleton cu. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/DIBuilder.h7
-rw-r--r--include/llvm/DebugInfo.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h
index 3de75ff..5efbb9e 100644
--- a/include/llvm/DIBuilder.h
+++ b/include/llvm/DIBuilder.h
@@ -91,9 +91,12 @@ namespace llvm {
/// by a tool analyzing generated debugging information.
/// @param RV This indicates runtime version for languages like
/// Objective-C.
+ /// @param SplitName The name of the file that we'll split debug info out
+ /// into.
void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir,
- StringRef Producer,
- bool isOptimized, StringRef Flags, unsigned RV);
+ StringRef Producer, bool isOptimized,
+ StringRef Flags, unsigned RV,
+ StringRef SplitName = StringRef());
/// createFile - Create a file descriptor to hold debugging information
/// for a file.
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index a281f22..c557a7a 100644
--- a/include/llvm/DebugInfo.h
+++ b/include/llvm/DebugInfo.h
@@ -203,6 +203,8 @@ namespace llvm {
DIArray getSubprograms() const;
DIArray getGlobalVariables() const;
+ StringRef getSplitDebugFilename() const { return getStringField(14); }
+
/// Verify - Verify that a compile unit is well formed.
bool Verify() const;
};