diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-13 06:18:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-13 06:18:21 +0000 |
commit | 897bf0dea59cbebdd567a79edcee8f5056f8d692 (patch) | |
tree | 1c8e0393ab91807b749d6312edc2066d60ab208f /lib/Target/CBackend/CBackend.cpp | |
parent | d8400d86dd016ae93b25465dcf3bd5513800293a (diff) |
Fine grainify namespacification, prune #includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 43f50e9843..73f4341621 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 <algorithm> #include <sstream> - -namespace llvm { +using namespace llvm; namespace { class CWriter : public Pass, public InstVisitor<CWriter> { @@ -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); } |