summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-08-01 19:38:20 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-08-01 19:38:20 +0000
commitd4dd7215f62eac518bdee21bba64622134dfa637 (patch)
tree2b7a895f9d8107a94f96abe130cd98b7eabb1852 /llvm/lib/IR
parent11f14904d3c13342c4ecc0f4a408c3a98b087ddf (diff)
downloadbcm5719-llvm-d4dd7215f62eac518bdee21bba64622134dfa637.tar.gz
bcm5719-llvm-d4dd7215f62eac518bdee21bba64622134dfa637.zip
[DEBUGINFO] Disable emission of the dwarf sections, but allow directives.
Summary: Added an option that allows to emit only '.loc' and '.file' kind debug directives, but disables emission of the DWARF sections. Required for NVPTX target to support profiling. It requires '.loc' and '.file' directives, but does not require any DWARF sections for the profiler. Reviewers: probinson, echristo, dblaikie Subscribers: aprantl, JDevlieghere, llvm-commits Differential Revision: https://reviews.llvm.org/D46021 llvm-svn: 338616
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/DebugInfoMetadata.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/DebugInfoMetadata.cpp b/llvm/lib/IR/DebugInfoMetadata.cpp
index 910e8c2fb74..7908b254446 100644
--- a/llvm/lib/IR/DebugInfoMetadata.cpp
+++ b/llvm/lib/IR/DebugInfoMetadata.cpp
@@ -472,6 +472,7 @@ DICompileUnit::getEmissionKind(StringRef Str) {
.Case("NoDebug", NoDebug)
.Case("FullDebug", FullDebug)
.Case("LineTablesOnly", LineTablesOnly)
+ .Case("DebugDirectivesOnly", DebugDirectivesOnly)
.Default(None);
}
@@ -480,6 +481,7 @@ const char *DICompileUnit::emissionKindString(DebugEmissionKind EK) {
case NoDebug: return "NoDebug";
case FullDebug: return "FullDebug";
case LineTablesOnly: return "LineTablesOnly";
+ case DebugDirectivesOnly: return "DebugDirectviesOnly";
}
return nullptr;
}
OpenPOWER on IntegriCloud