diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-08-01 03:55:39 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-08-01 03:55:39 +0000 |
| commit | 2082ebe8b3a5db302748828ab4f79a36d239c1d9 (patch) | |
| tree | 5bab7643155a37133b11ae955f1f49a4adbf1990 /utils/TableGen/Record.cpp | |
| parent | 1ab7c5b5e891804411d85d98403536f705d82fcc (diff) | |
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.cpp')
| -rw-r--r-- | utils/TableGen/Record.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp index 717962794a..88c1f81002 100644 --- a/utils/TableGen/Record.cpp +++ b/utils/TableGen/Record.cpp @@ -11,13 +11,12 @@ //===----------------------------------------------------------------------===// #include "Record.h" +using namespace llvm; //===----------------------------------------------------------------------===// // Type implementations //===----------------------------------------------------------------------===// -namespace llvm { - void RecTy::dump() const { print(std::cerr); } Init *BitRecTy::convertValue(BitsInit *BI) { @@ -568,7 +567,7 @@ void Record::resolveReferences() { void Record::dump() const { std::cerr << *this; } -std::ostream &operator<<(std::ostream &OS, const Record &R) { +std::ostream &llvm::operator<<(std::ostream &OS, const Record &R) { OS << R.getName(); const std::vector<std::string> &TArgs = R.getTemplateArgs(); @@ -730,7 +729,7 @@ DagInit *Record::getValueAsDag(const std::string &FieldName) const { void RecordKeeper::dump() const { std::cerr << *this; } -std::ostream &operator<<(std::ostream &OS, const RecordKeeper &RK) { +std::ostream &llvm::operator<<(std::ostream &OS, const RecordKeeper &RK) { OS << "------------- Classes -----------------\n"; const std::map<std::string, Record*> &Classes = RK.getClasses(); for (std::map<std::string, Record*>::const_iterator I = Classes.begin(), @@ -764,4 +763,3 @@ RecordKeeper::getAllDerivedDefinitions(const std::string &ClassName) const { return Defs; } -} // End llvm namespace |
