summaryrefslogtreecommitdiff
path: root/lib/ObjectYAML
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-05-15 21:26:47 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-05-15 21:26:47 +0000
commitfd83828e5dba91175e84c72a5aebb0ffc0208e2a (patch)
tree4c56098d477ee084991ad05799d4e4e05e6bed1c /lib/ObjectYAML
parente8d6f34445856fcdf9224095441a04457b626f83 (diff)
Move helper classes into anonymous namespaces. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ObjectYAML')
-rw-r--r--lib/ObjectYAML/DWARFEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ObjectYAML/DWARFEmitter.cpp b/lib/ObjectYAML/DWARFEmitter.cpp
index 6d75897066a..f23fa123760 100644
--- a/lib/ObjectYAML/DWARFEmitter.cpp
+++ b/lib/ObjectYAML/DWARFEmitter.cpp
@@ -307,6 +307,7 @@ EmitDebugSectionImpl(const DWARFYAML::Data &DI, EmitFuncType EmitFunc,
OutputBuffers[Sec] = MemoryBuffer::getMemBufferCopy(Data);
}
+namespace {
class DIEFixupVisitor : public DWARFYAML::Visitor {
uint64_t Length;
@@ -345,6 +346,7 @@ private:
Length += MBR.getBufferSize();
}
};
+} // namespace
Expected<StringMap<std::unique_ptr<MemoryBuffer>>>
DWARFYAML::EmitDebugSections(StringRef YAMLString, bool ApplyFixups,