summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2012-06-07 02:23:48 +0000
committerNick Kledzik <kledzik@apple.com>2012-06-07 02:23:48 +0000
commit5fb2e4dabebbda722858307aa1197db571cad73f (patch)
treecdd06b0df0d3283163e2c4373291c70a831f2121
parent98211f6d19a1dece0d4b3749466ac0ed22ae7132 (diff)
downloadbcm5719-llvm-5fb2e4dabebbda722858307aa1197db571cad73f.tar.gz
bcm5719-llvm-5fb2e4dabebbda722858307aa1197db571cad73f.zip
put the public function createReaderPECOFF() in the lld namespace and everything else in is own namespace
llvm-svn: 158135
-rw-r--r--lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
index 7c8bad655be..3349235ed51 100644
--- a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
@@ -23,8 +23,9 @@
#include <vector>
using llvm::object::coff_symbol;
+using namespace lld;
-namespace lld {
+namespace { // anonymous
class COFFAbsoluteAtom : public AbsoluteAtom {
public:
@@ -376,6 +377,10 @@ private:
const ReaderOptionsPECOFF &_options;
};
+} // namespace anonymous
+
+
+namespace lld {
Reader* createReaderPECOFF(const ReaderOptionsPECOFF &options) {
return new ReaderCOFF(options);
OpenPOWER on IntegriCloud