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 | 337df9b9059ea03eb2a9c274cf885cb3f862b4d2 (patch) | |
| tree | c4b9f118ee9bec397c6fca1024dae652cf65f983 /llvm/lib | |
| parent | 51f100753cc87ae7f57705a18837bb08839cf701 (diff) | |
| download | bcm5719-llvm-337df9b9059ea03eb2a9c274cf885cb3f862b4d2.tar.gz bcm5719-llvm-337df9b9059ea03eb2a9c274cf885cb3f862b4d2.zip | |
Fine grainify namespacification, prune #includes
llvm-svn: 11369
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CWriter/Writer.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/llvm/lib/CWriter/Writer.cpp b/llvm/lib/CWriter/Writer.cpp index 43f50e9843b..73f43416219 100644 --- a/llvm/lib/CWriter/Writer.cpp +++ b/llvm/lib/CWriter/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 <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); } |

