diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 43f50e9843b..73f43416219 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -7,7 +7,8 @@ // //===----------------------------------------------------------------------===// // -// This library converts LLVM code to C code, compilable by GCC. +// This library converts LLVM code to C code, compilable by GCC and other C +// compilers. // //===----------------------------------------------------------------------===// @@ -24,15 +25,11 @@ #include "llvm/Support/CallSite.h" #include "llvm/Support/GetElementPtrTypeIterator.h" #include "llvm/Support/InstVisitor.h" -#include "llvm/Support/InstIterator.h" #include "llvm/Support/Mangler.h" #include "Support/StringExtras.h" -#include "Support/STLExtras.h" -#include "Config/config.h" #include #include - -namespace llvm { +using namespace llvm; namespace { class CWriter : public Pass, public InstVisitor { @@ -1476,6 +1473,4 @@ void CWriter::visitVAArgInst(VAArgInst &I) { // External Interface declaration //===----------------------------------------------------------------------===// -Pass *createWriteToCPass(std::ostream &o) { return new CWriter(o); } - -} // End llvm namespace +Pass *llvm::createWriteToCPass(std::ostream &o) { return new CWriter(o); } diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 43f50e9843b..73f43416219 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -7,7 +7,8 @@ // //===----------------------------------------------------------------------===// // -// This library converts LLVM code to C code, compilable by GCC. +// This library converts LLVM code to C code, compilable by GCC and other C +// compilers. // //===----------------------------------------------------------------------===// @@ -24,15 +25,11 @@ #include "llvm/Support/CallSite.h" #include "llvm/Support/GetElementPtrTypeIterator.h" #include "llvm/Support/InstVisitor.h" -#include "llvm/Support/InstIterator.h" #include "llvm/Support/Mangler.h" #include "Support/StringExtras.h" -#include "Support/STLExtras.h" -#include "Config/config.h" #include #include - -namespace llvm { +using namespace llvm; namespace { class CWriter : public Pass, public InstVisitor { @@ -1476,6 +1473,4 @@ void CWriter::visitVAArgInst(VAArgInst &I) { // External Interface declaration //===----------------------------------------------------------------------===// -Pass *createWriteToCPass(std::ostream &o) { return new CWriter(o); } - -} // End llvm namespace +Pass *llvm::createWriteToCPass(std::ostream &o) { return new CWriter(o); }