From 2a59024ff8735cfffada708ecbc8abd8cde874e3 Mon Sep 17 00:00:00 2001 From: Sid Manning Date: Thu, 18 Oct 2012 17:16:19 +0000 Subject: This update does the following: * Moves enum Scope from DefinedAtom.h to Atom.h * Adds scope method to AbsoluteAtom class * Updates YAML to print scope of AbsoluteAtoms * Update Native Reader/Writer to handle this new, "attribute" * Adds testcase Reviewed and approved by Nick Kledzik llvm-svn: 166189 --- lld/lib/ReaderWriter/YAML/ReaderYAML.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lld/lib/ReaderWriter/YAML/ReaderYAML.cpp') diff --git a/lld/lib/ReaderWriter/YAML/ReaderYAML.cpp b/lld/lib/ReaderWriter/YAML/ReaderYAML.cpp index 72536a45773..bf8e70c1985 100644 --- a/lld/lib/ReaderWriter/YAML/ReaderYAML.cpp +++ b/lld/lib/ReaderWriter/YAML/ReaderYAML.cpp @@ -429,6 +429,10 @@ public: return _file; } + virtual Scope scope() const { + return scopeGlobal; + } + virtual StringRef name() const { return _name; } -- cgit v1.2.3