summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
diff options
context:
space:
mode:
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>2018-07-23 23:14:23 +0000
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>2018-07-23 23:14:23 +0000
commit790d86cefc154494a4a207ff139b749987a3f0e9 (patch)
tree8260271234a18f0398edf21b44da82364cce432f /llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
parent917111f91ec136d6acab7da78eedd0fb41f169ae (diff)
downloadbcm5719-llvm-790d86cefc154494a4a207ff139b749987a3f0e9.tar.gz
bcm5719-llvm-790d86cefc154494a4a207ff139b749987a3f0e9.zip
Embed a template specialization in a namespace to work around a gcc bug.
llvm-svn: 337770
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
index fac075ba536..b19c808a8fb 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
@@ -24,11 +24,13 @@ static Error createError(char const *Fmt, const Ts &... Vals) {
return make_error<StringError>(Stream.str(), inconvertibleErrorCode());
}
+namespace llvm { // workaround for gcc bug
template <>
Error DWARFListType<RangeListEntry>::createError(const char *Fmt, const char *s,
uint32_t Val) {
return ::createError(Fmt, s, Val);
}
+}
Error RangeListEntry::extract(DWARFDataExtractor Data, uint32_t End,
uint32_t *OffsetPtr) {
OpenPOWER on IntegriCloud